summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-10 19:36:29 +0200
committerMattes D <github@xoft.cz>2014-08-10 19:36:29 +0200
commit9469256cac04a62e550925fcc89a81586d994050 (patch)
treeb5f638131251bd29daefb848aec5b9ca7e6b13fa
parentRemoved an old and outdated comment. (diff)
parentFixed swing arm animation when you ate. (diff)
downloadcuberite-9469256cac04a62e550925fcc89a81586d994050.tar
cuberite-9469256cac04a62e550925fcc89a81586d994050.tar.gz
cuberite-9469256cac04a62e550925fcc89a81586d994050.tar.bz2
cuberite-9469256cac04a62e550925fcc89a81586d994050.tar.lz
cuberite-9469256cac04a62e550925fcc89a81586d994050.tar.xz
cuberite-9469256cac04a62e550925fcc89a81586d994050.tar.zst
cuberite-9469256cac04a62e550925fcc89a81586d994050.zip
-rw-r--r--src/Entities/Player.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index d1d7349a6..8fa060a5d 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -601,7 +601,6 @@ void cPlayer::FinishEating(void)
// Send the packets:
m_ClientHandle->SendEntityStatus(*this, esPlayerEatingAccepted);
- m_World->BroadcastEntityAnimation(*this, 0);
m_World->BroadcastEntityMetadata(*this);
// consume the item:
@@ -619,8 +618,8 @@ void cPlayer::FinishEating(void)
// if the food is mushroom soup, return a bowl to the inventory
if (Item.m_ItemType == E_ITEM_MUSHROOM_SOUP)
{
- cItem emptyBowl(E_ITEM_BOWL, 1, 0, "");
- GetInventory().AddItem(emptyBowl, true, true);
+ cItem EmptyBowl(E_ITEM_BOWL);
+ GetInventory().AddItem(EmptyBowl, true, true);
}
}
@@ -631,7 +630,6 @@ void cPlayer::FinishEating(void)
void cPlayer::AbortEating(void)
{
m_EatingFinishTick = -1;
- m_World->BroadcastEntityAnimation(*this, 0);
m_World->BroadcastEntityMetadata(*this);
}