@@ -7,5 +7,5 @@
|
||||
- if ((Integer) iblockdata1.getValue(BlockScaffolding.DISTANCE) == 7) {
|
||||
+ if ((Integer) iblockdata1.getValue(BlockScaffolding.DISTANCE) == 7 && !org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(worldserver, blockposition, Blocks.AIR.defaultBlockState()).isCancelled()) { // CraftBukkit - BlockFadeEvent
|
||||
if ((Integer) iblockdata.getValue(BlockScaffolding.DISTANCE) == 7) {
|
||||
worldserver.addFreshEntity(new EntityFallingBlock(worldserver, (double) blockposition.getX() + 0.5D, (double) blockposition.getY(), (double) blockposition.getZ() + 0.5D, (IBlockData) iblockdata1.setValue(BlockScaffolding.WATERLOGGED, false)));
|
||||
EntityFallingBlock.fall(worldserver, blockposition, iblockdata1);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user