diff options
author | madmaxoft <github@xoft.cz> | 2013-10-28 13:30:24 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-28 13:30:24 +0100 |
commit | df20c19986805380cfd728d63f2e3003331b1665 (patch) | |
tree | 6f2d00c4b23f46af9a6d39550186815a95905dcb /source/ClientHandle.cpp | |
parent | APIDump: Documented HTTPFormData and HTTPRequest. (diff) | |
download | cuberite-df20c19986805380cfd728d63f2e3003331b1665.tar cuberite-df20c19986805380cfd728d63f2e3003331b1665.tar.gz cuberite-df20c19986805380cfd728d63f2e3003331b1665.tar.bz2 cuberite-df20c19986805380cfd728d63f2e3003331b1665.tar.lz cuberite-df20c19986805380cfd728d63f2e3003331b1665.tar.xz cuberite-df20c19986805380cfd728d63f2e3003331b1665.tar.zst cuberite-df20c19986805380cfd728d63f2e3003331b1665.zip |
Diffstat (limited to 'source/ClientHandle.cpp')
-rw-r--r-- | source/ClientHandle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index f67a546fd..90802aa71 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -469,12 +469,12 @@ 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->GetGameMode() != eGameMode_Creative) + if (m_Player->IsGameModeCreative()) { LOGWARNING("Got a CreativeInventoryAction packet from user \"%s\" while not in creative mode. Ignoring.", m_Username.c_str()); return; } - if (m_Player->GetWindow()->GetWindowType() != cWindow::Inventory) + if (m_Player->GetWindow()->GetWindowType() != cWindow::wtInventory) { LOGWARNING("Got a CreativeInventoryAction packet from user \"%s\" while not in the inventory window. Ignoring.", m_Username.c_str()); return; |