summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-04-25 08:11:49 +0200
committerMattes D <github@xoft.cz>2014-04-25 08:11:49 +0200
commita40108da90f8d0e4fff4027e45176cbe637106ad (patch)
treeeacd3dbb2f969e3cedfecaa16b0f23d6c59f5fb5 /src/ClientHandle.cpp
parentMerge pull request #929 from archshift/master (diff)
parentAdd commit what the code is doing. (diff)
downloadcuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.gz
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.bz2
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.lz
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.xz
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.zst
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp2
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())
{