summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-04-25 19:50:10 +0200
committerarchshift <admin@archshift.com>2014-04-25 19:50:10 +0200
commitd64e46186f21a024da3cedff1a8bab24e8d51b3f (patch)
tree441377b44418bce1a7d97b5cc2b09135e668aa40 /src/ClientHandle.cpp
parentSmall changes; warning fixing. (diff)
parentMerge pull request #937 from archshift/xcode-headers (diff)
downloadcuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar
cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.gz
cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.bz2
cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.lz
cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.xz
cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.zst
cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.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 d7520f969..7bfae9ca7 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1113,7 +1113,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())
{