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:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user