summaryrefslogtreecommitdiffstats
path: root/source/Blocks
diff options
context:
space:
mode:
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));