1
0
Fork 0

Fixed bug where creative inventory didn't work.

This commit is contained in:
STRWarrior 2013-10-29 21:19:06 +01:00
parent 111fb24d3a
commit 0384c54676
1 changed files with 1 additions and 1 deletions

View File

@ -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;