diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/BlockScaffolding.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/level/block/BlockScaffolding.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/BlockScaffolding.patch b/patch-remap/og/net/minecraft/world/level/block/BlockScaffolding.patch new file mode 100644 index 0000000000..d151507de8 --- /dev/null +++ b/patch-remap/og/net/minecraft/world/level/block/BlockScaffolding.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/world/level/block/BlockScaffolding.java ++++ b/net/minecraft/world/level/block/BlockScaffolding.java +@@ -103,7 +103,7 @@ + int i = getDistance(worldserver, blockposition); + IBlockData iblockdata1 = (IBlockData) ((IBlockData) iblockdata.setValue(BlockScaffolding.DISTANCE, i)).setValue(BlockScaffolding.BOTTOM, this.isBottom(worldserver, blockposition, i)); + +- 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) { + EntityFallingBlock.fall(worldserver, blockposition, iblockdata1); + } else { |