diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-04-24 20:41:25 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-04-24 20:41:25 +0200 |
commit | 9cbb3a339f98f1737ea78af7f40e1ae7d25027e8 (patch) | |
tree | 34544dccfab33203ed5aed209199ba99df1b207d /src/ClientHandle.cpp | |
parent | Updated docs for StringToEnchantmentID. (diff) | |
download | cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.tar cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.tar.gz cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.tar.bz2 cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.tar.lz cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.tar.xz cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.tar.zst cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 0f26d41e7..63ae98be4 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1037,7 +1037,7 @@ void cClientHandle::HandleRightClick(int a_BlockX, int a_BlockY, int a_BlockZ, e { HandlePlaceBlock(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, *ItemHandler); } - else if (ItemHandler->IsFood()) + else if (ItemHandler->IsFood() && !m_Player->IsGameModeCreative()) { if (m_Player->IsSatiated()) { |