diff options
author | Mattes D <github@xoft.cz> | 2014-04-25 08:11:49 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-04-25 08:11:49 +0200 |
commit | a40108da90f8d0e4fff4027e45176cbe637106ad (patch) | |
tree | eacd3dbb2f969e3cedfecaa16b0f23d6c59f5fb5 /src/ClientHandle.cpp | |
parent | Merge pull request #929 from archshift/master (diff) | |
parent | Add commit what the code is doing. (diff) | |
download | cuberite-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.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()) { |