2019-11-14 23:48:57 +01:00
|
|
|
--- a/net/minecraft/server/BlockScaffolding.java
|
|
|
|
+++ b/net/minecraft/server/BlockScaffolding.java
|
2019-12-10 23:00:00 +01:00
|
|
|
@@ -73,7 +73,7 @@
|
|
|
|
int i = a((IBlockAccess) worldserver, blockposition);
|
|
|
|
IBlockData iblockdata1 = (IBlockData) ((IBlockData) iblockdata.set(BlockScaffolding.a, i)).set(BlockScaffolding.c, this.a(worldserver, blockposition, i));
|
2019-11-14 23:48:57 +01:00
|
|
|
|
|
|
|
- if ((Integer) iblockdata1.get(BlockScaffolding.a) == 7) {
|
2019-12-10 23:00:00 +01:00
|
|
|
+ if ((Integer) iblockdata1.get(BlockScaffolding.a) == 7 && !org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(worldserver, blockposition, Blocks.AIR.getBlockData()).isCancelled()) { // CraftBukkit - BlockFadeEvent
|
2019-11-14 23:48:57 +01:00
|
|
|
if ((Integer) iblockdata.get(BlockScaffolding.a) == 7) {
|
2019-12-10 23:00:00 +01:00
|
|
|
worldserver.addEntity(new EntityFallingBlock(worldserver, (double) blockposition.getX() + 0.5D, (double) blockposition.getY(), (double) blockposition.getZ() + 0.5D, (IBlockData) iblockdata1.set(BlockScaffolding.b, false)));
|
2019-11-14 23:48:57 +01:00
|
|
|
} else {
|