Expanded one-line if statement
This commit is contained in:
parent
6a051b7cd8
commit
a6695564f3
@ -93,7 +93,10 @@ void cBlockPistonHeadHandler::OnDestroyedByPlayer(cWorld * a_World, cPlayer * a_
|
|||||||
if ((Block == E_BLOCK_STICKY_PISTON) || (Block == E_BLOCK_PISTON))
|
if ((Block == E_BLOCK_STICKY_PISTON) || (Block == E_BLOCK_PISTON))
|
||||||
{
|
{
|
||||||
a_World->DigBlock(newX, newY, newZ);
|
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;
|
cItems Pickups;
|
||||||
Pickups.push_back(cItem(Block, 1));
|
Pickups.push_back(cItem(Block, 1));
|
||||||
|
Loading…
Reference in New Issue
Block a user