1
0

Expanded one-line if statement

This commit is contained in:
Tiger Wang 2013-11-23 12:10:33 +00:00
parent 6a051b7cd8
commit a6695564f3

View File

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