summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-10 17:08:22 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-10 17:08:22 +0200
commitae611563919d123a93d6aab0eaf20c7423acce23 (patch)
treeb5f638131251bd29daefb848aec5b9ca7e6b13fa
parentRemoved an old and outdated comment. (diff)
downloadcuberite-ae611563919d123a93d6aab0eaf20c7423acce23.tar
cuberite-ae611563919d123a93d6aab0eaf20c7423acce23.tar.gz
cuberite-ae611563919d123a93d6aab0eaf20c7423acce23.tar.bz2
cuberite-ae611563919d123a93d6aab0eaf20c7423acce23.tar.lz
cuberite-ae611563919d123a93d6aab0eaf20c7423acce23.tar.xz
cuberite-ae611563919d123a93d6aab0eaf20c7423acce23.tar.zst
cuberite-ae611563919d123a93d6aab0eaf20c7423acce23.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);
}