From 4fb771f3fffb63d8c54c9201ca6d2ce21bd09e5f Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 12 Jul 2013 20:01:25 +0000 Subject: First implementation of movement-related hunger and API git-svn-id: http://mc-server.googlecode.com/svn/trunk@1673 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol/Protocol125.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Protocol') diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp index 97c193e97..fddf7d324 100644 --- a/source/Protocol/Protocol125.cpp +++ b/source/Protocol/Protocol125.cpp @@ -469,7 +469,7 @@ void cProtocol125::SendHealth(void) WriteByte (PACKET_UPDATE_HEALTH); WriteShort((short)m_Client->GetPlayer()->GetHealth()); WriteShort(m_Client->GetPlayer()->GetFoodLevel()); - WriteFloat(m_Client->GetPlayer()->GetFoodSaturationLevel()); + WriteFloat((float)m_Client->GetPlayer()->GetFoodSaturationLevel()); Flush(); } -- cgit v1.2.3