summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockPiston.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-23 13:10:33 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-23 13:10:33 +0100
commita6695564f3297e2fa6787e2c5e1e68d36c3fd9b1 (patch)
tree4a0bf90d33fb49066523263a6ff755283b8b440e /source/Blocks/BlockPiston.cpp
parentProperly fixed piston bugs (diff)
downloadcuberite-a6695564f3297e2fa6787e2c5e1e68d36c3fd9b1.tar
cuberite-a6695564f3297e2fa6787e2c5e1e68d36c3fd9b1.tar.gz
cuberite-a6695564f3297e2fa6787e2c5e1e68d36c3fd9b1.tar.bz2
cuberite-a6695564f3297e2fa6787e2c5e1e68d36c3fd9b1.tar.lz
cuberite-a6695564f3297e2fa6787e2c5e1e68d36c3fd9b1.tar.xz
cuberite-a6695564f3297e2fa6787e2c5e1e68d36c3fd9b1.tar.zst
cuberite-a6695564f3297e2fa6787e2c5e1e68d36c3fd9b1.zip
Diffstat (limited to '')
-rw-r--r--source/Blocks/BlockPiston.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/Blocks/BlockPiston.cpp b/source/Blocks/BlockPiston.cpp
index 42d7e8d35..3e1ca1d15 100644
--- a/source/Blocks/BlockPiston.cpp
+++ b/source/Blocks/BlockPiston.cpp
@@ -93,7 +93,10 @@ void cBlockPistonHeadHandler::OnDestroyedByPlayer(cWorld * a_World, cPlayer * a_
if ((Block == E_BLOCK_STICKY_PISTON) || (Block == E_BLOCK_PISTON))
{
a_World->DigBlock(newX, newY, newZ);
- if (a_Player->IsGameModeCreative()) { return; } // No pickups if creative
+ if (a_Player->IsGameModeCreative())
+ {
+ return; // No pickups if creative
+ }
cItems Pickups;
Pickups.push_back(cItem(Block, 1));