summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.cpp
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-29 03:44:21 +0100
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-29 03:44:21 +0100
commit2ca40c819ecb7b77879c62b2465345a5e6428bd5 (patch)
treea5be4ab8ed7ecac9b6b222c0dd330e8c0bb6c3db /source/cClientHandle.cpp
parent- water slacks fire now (diff)
downloadcuberite-2ca40c819ecb7b77879c62b2465345a5e6428bd5.tar
cuberite-2ca40c819ecb7b77879c62b2465345a5e6428bd5.tar.gz
cuberite-2ca40c819ecb7b77879c62b2465345a5e6428bd5.tar.bz2
cuberite-2ca40c819ecb7b77879c62b2465345a5e6428bd5.tar.lz
cuberite-2ca40c819ecb7b77879c62b2465345a5e6428bd5.tar.xz
cuberite-2ca40c819ecb7b77879c62b2465345a5e6428bd5.tar.zst
cuberite-2ca40c819ecb7b77879c62b2465345a5e6428bd5.zip
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index 8c49411fe..22adc2207 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -872,21 +872,28 @@ void cClientHandle::HandlePacket( cPacket* a_Packet )
case E_ITEM_LAVA_BUCKET:
if((m_Player->GetGameMode() == 1) || (m_Player->GetInventory().RemoveItem( Item )))
{
+ PacketData->m_ItemType = E_BLOCK_LAVA;
+ if(m_Player->GetGameMode() == 1)
+ break; //No new Bucket for creative players
+
cItem NewItem;
NewItem.m_ItemID = E_ITEM_BUCKET;
NewItem.m_ItemCount = 1;
m_Player->GetInventory().AddItem( NewItem );
- PacketData->m_ItemType = E_BLOCK_LAVA;
+
}
break;
case E_ITEM_WATER_BUCKET:
if((m_Player->GetGameMode() == 1) || (m_Player->GetInventory().RemoveItem( Item )))
{
+ PacketData->m_ItemType = E_BLOCK_WATER;
+ if(m_Player->GetGameMode() == 1)
+ break; //No new Bucket for creative players
cItem NewItem;
NewItem.m_ItemID = E_ITEM_BUCKET;
NewItem.m_ItemCount = 1;
m_Player->GetInventory().AddItem( NewItem );
- PacketData->m_ItemType = E_BLOCK_WATER;
+
}
break;
case E_BLOCK_WHITE_CLOTH: