diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-08-10 17:08:22 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-08-10 17:08:22 +0200 |
commit | ae611563919d123a93d6aab0eaf20c7423acce23 (patch) | |
tree | b5f638131251bd29daefb848aec5b9ca7e6b13fa /src/Entities/Player.cpp | |
parent | Removed an old and outdated comment. (diff) | |
download | cuberite-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 |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 6 |
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); } |