1
0

Fixed style.

This commit is contained in:
madmaxoft 2014-08-30 22:24:04 +02:00
parent 26b8471280
commit db663c7ee1
2 changed files with 6 additions and 4 deletions

View File

@ -211,7 +211,8 @@ void cCommandBlockEntity::Execute()
} }
} CmdBlockOutCb(this); } CmdBlockOutCb(this);
if ( // Administrator commands are not executable by command blocks // Administrator commands are not executable by command blocks:
if (
(m_Command != "stop") && (m_Command != "stop") &&
(m_Command != "restart") && (m_Command != "restart") &&
(m_Command != "kick") && (m_Command != "kick") &&

View File

@ -1880,6 +1880,7 @@ void cChunkMap::DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_
} }
else if ((m_World->GetTNTShrapnelLevel() > slNone) && (m_World->GetTickRandomNumber(100) < 20)) // 20% chance of flinging stuff around else if ((m_World->GetTNTShrapnelLevel() > slNone) && (m_World->GetTickRandomNumber(100) < 20)) // 20% chance of flinging stuff around
{ {
// If the block is shrapnel-able, make a falling block entity out of it:
if ( if (
((m_World->GetTNTShrapnelLevel() == slAll) && cBlockInfo::FullyOccupiesVoxel(Block)) || ((m_World->GetTNTShrapnelLevel() == slAll) && cBlockInfo::FullyOccupiesVoxel(Block)) ||
((m_World->GetTNTShrapnelLevel() == slGravityAffectedOnly) && ((Block == E_BLOCK_SAND) || (Block == E_BLOCK_GRAVEL))) ((m_World->GetTNTShrapnelLevel() == slGravityAffectedOnly) && ((Block == E_BLOCK_SAND) || (Block == E_BLOCK_GRAVEL)))