diff options
author | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-10-26 21:13:49 +0200 |
---|---|---|
committer | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-10-26 21:13:49 +0200 |
commit | 6062002d1753ebf8fab356f34a338cbe2c16c2fe (patch) | |
tree | 4c23a60cf2e2a65c8fd0bda44141197de022fa5b /source/cClientHandle.cpp | |
parent | Creative mode now breaks blocks without providing block drops. Need to work with Player's Inventory for proper creative mode support. GAMEMODE is declared and set twice. (diff) | |
download | cuberite-6062002d1753ebf8fab356f34a338cbe2c16c2fe.tar cuberite-6062002d1753ebf8fab356f34a338cbe2c16c2fe.tar.gz cuberite-6062002d1753ebf8fab356f34a338cbe2c16c2fe.tar.bz2 cuberite-6062002d1753ebf8fab356f34a338cbe2c16c2fe.tar.lz cuberite-6062002d1753ebf8fab356f34a338cbe2c16c2fe.tar.xz cuberite-6062002d1753ebf8fab356f34a338cbe2c16c2fe.tar.zst cuberite-6062002d1753ebf8fab356f34a338cbe2c16c2fe.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cClientHandle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 9b1e886dd..c5c6dbd20 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -482,10 +482,10 @@ void cClientHandle::HandlePacket( cPacket* a_Packet ) cWorld* World = cRoot::Get()->GetWorld();
char OldBlock = World->GetBlock(PacketData->m_PosX, PacketData->m_PosY, PacketData->m_PosZ);
char MetaData = World->GetBlockMeta(PacketData->m_PosX, PacketData->m_PosY, PacketData->m_PosZ);
- bool bBroken = (PacketData->m_Status == 0x02) || g_BlockOneHitDig[(int)OldBlock] || ( (PacketData->m_Status == 0x00) && (GAMEMODE == 1) ); //need to change to check for client's gamemode.
+ bool bBroken = (PacketData->m_Status == 0x02) || g_BlockOneHitDig[(int)OldBlock] || ( (PacketData->m_Status == 0x00) && (cPacket::GAMEMODE == 1) ); //need to change to check for client's gamemode.
cItem PickupItem;
- if( bBroken && !(GAMEMODE == 1) ) // broken
+ if( bBroken && !(cPacket::GAMEMODE == 1) ) // broken
{
ENUM_ITEM_ID PickupID = cBlockToPickup::ToPickup( (ENUM_BLOCK_ID)OldBlock, m_Player->GetInventory().GetEquippedItem().m_ItemID );
PickupItem.m_ItemID = PickupID;
|