diff options
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/ScaffoldingBlock.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/ScaffoldingBlock.java.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/ScaffoldingBlock.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/ScaffoldingBlock.java.patch new file mode 100644 index 0000000000..ce8ef9088c --- /dev/null +++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/ScaffoldingBlock.java.patch @@ -0,0 +1,15 @@ +--- a/net/minecraft/world/level/block/ScaffoldingBlock.java ++++ b/net/minecraft/world/level/block/ScaffoldingBlock.java +@@ -112,9 +103,9 @@ + int i = getDistance(serverlevel, blockpos); + BlockState blockstate1 = (BlockState) ((BlockState) blockstate.setValue(ScaffoldingBlock.DISTANCE, i)).setValue(ScaffoldingBlock.BOTTOM, this.isBottom(serverlevel, blockpos, i)); + +- if ((Integer) blockstate1.getValue(ScaffoldingBlock.DISTANCE) == 7) { +- if ((Integer) blockstate.getValue(ScaffoldingBlock.DISTANCE) == 7) { +- FallingBlockEntity.fall(serverlevel, blockpos, blockstate1); ++ if ((Integer) iblockdata1.getValue(ScaffoldingBlock.DISTANCE) == 7 && !org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(level, pos, Blocks.AIR.defaultBlockState()).isCancelled()) { // CraftBukkit - BlockFadeEvent ++ if ((Integer) state.getValue(ScaffoldingBlock.DISTANCE) == 7) { ++ FallingBlockEntity.fall(level, pos, iblockdata1); + } else { + serverlevel.destroyBlock(blockpos, true); + } |