2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/block/BlockScaffolding.java
|
|
|
|
+++ b/net/minecraft/world/level/block/BlockScaffolding.java
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -96,7 +96,7 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
int i = getDistance(worldserver, blockposition);
|
|
|
|
IBlockData iblockdata1 = (IBlockData) ((IBlockData) iblockdata.setValue(BlockScaffolding.DISTANCE, i)).setValue(BlockScaffolding.BOTTOM, this.isBottom(worldserver, blockposition, i));
|
2019-11-14 23:48:57 +01:00
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
- 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) {
|
2022-02-28 16:00:00 +01:00
|
|
|
EntityFallingBlock.fall(worldserver, blockposition, iblockdata1);
|
2019-11-14 23:48:57 +01:00
|
|
|
} else {
|