summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-10-29 21:19:06 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-10-29 21:19:06 +0100
commit0384c54676800f4d9e0cec86194e3908dd967abf (patch)
tree38b5e553c6390fda3ca0f360f7e95335fea76120 /source/ClientHandle.cpp
parentProtoProxy: Updated the server-side packets to 1.7. (diff)
downloadcuberite-0384c54676800f4d9e0cec86194e3908dd967abf.tar
cuberite-0384c54676800f4d9e0cec86194e3908dd967abf.tar.gz
cuberite-0384c54676800f4d9e0cec86194e3908dd967abf.tar.bz2
cuberite-0384c54676800f4d9e0cec86194e3908dd967abf.tar.lz
cuberite-0384c54676800f4d9e0cec86194e3908dd967abf.tar.xz
cuberite-0384c54676800f4d9e0cec86194e3908dd967abf.tar.zst
cuberite-0384c54676800f4d9e0cec86194e3908dd967abf.zip
Diffstat (limited to '')
-rw-r--r--source/ClientHandle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp
index 90802aa71..c67e829d2 100644
--- a/source/ClientHandle.cpp
+++ b/source/ClientHandle.cpp
@@ -469,7 +469,7 @@ bool cClientHandle::HandleLogin(int a_ProtocolVersion, const AString & a_Usernam
void cClientHandle::HandleCreativeInventory(short a_SlotNum, const cItem & a_HeldItem)
{
// This is for creative Inventory changes
- if (m_Player->IsGameModeCreative())
+ if (!m_Player->IsGameModeCreative())
{
LOGWARNING("Got a CreativeInventoryAction packet from user \"%s\" while not in creative mode. Ignoring.", m_Username.c_str());
return;