mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-11 02:37:36 +01:00
9da047989c
By: md_5 <git@md-5.net>
12 lines
1005 B
Diff
12 lines
1005 B
Diff
--- a/net/minecraft/world/level/block/BlockScaffolding.java
|
|
+++ b/net/minecraft/world/level/block/BlockScaffolding.java
|
|
@@ -94,7 +94,7 @@
|
|
int i = a((IBlockAccess) worldserver, blockposition);
|
|
IBlockData iblockdata1 = (IBlockData) ((IBlockData) iblockdata.set(BlockScaffolding.a, i)).set(BlockScaffolding.c, this.a(worldserver, blockposition, i));
|
|
|
|
- if ((Integer) iblockdata1.get(BlockScaffolding.a) == 7) {
|
|
+ if ((Integer) iblockdata1.get(BlockScaffolding.a) == 7 && !org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(worldserver, blockposition, Blocks.AIR.getBlockData()).isCancelled()) { // CraftBukkit - BlockFadeEvent
|
|
if ((Integer) iblockdata.get(BlockScaffolding.a) == 7) {
|
|
worldserver.addEntity(new EntityFallingBlock(worldserver, (double) blockposition.getX() + 0.5D, (double) blockposition.getY(), (double) blockposition.getZ() + 0.5D, (IBlockData) iblockdata1.set(BlockScaffolding.b, false)));
|
|
} else {
|