Minor Change to Rifts

Changed rifts to using world.destroyBlock() instead of
world.setBlockToAir(). That has the advantage of causing block
destruction animations and sound effects instead of blocks vanishing
silently.
This commit is contained in:
SenseiKiwi
2014-01-05 01:13:12 -04:00
parent cdc93317dd
commit ab17a959bb

View File

@@ -204,7 +204,7 @@ public class BlockRift extends BlockContainer
if (!isBlockImmune(world, current.getX(), current.getY(), current.getZ()) && if (!isBlockImmune(world, current.getX(), current.getY(), current.getZ()) &&
random.nextInt(MAX_BLOCK_DESTRUCTION_CHANCE) < BLOCK_DESTRUCTION_CHANCE) random.nextInt(MAX_BLOCK_DESTRUCTION_CHANCE) < BLOCK_DESTRUCTION_CHANCE)
{ {
world.setBlockToAir(current.getX(), current.getY(), current.getZ()); world.destroyBlock(current.getX(), current.getY(), current.getZ(), false);
} }
} }
} }