summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockCoralFanWall.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockCoralFanWall.patch')
-rw-r--r--nms-patches/BlockCoralFanWall.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/nms-patches/BlockCoralFanWall.patch b/nms-patches/BlockCoralFanWall.patch
new file mode 100644
index 00000000..6c2adc68
--- /dev/null
+++ b/nms-patches/BlockCoralFanWall.patch
@@ -0,0 +1,14 @@
+--- a/net/minecraft/server/BlockCoralFanWall.java
++++ b/net/minecraft/server/BlockCoralFanWall.java
+@@ -17,6 +17,11 @@
+
+ public void a(IBlockData iblockdata, World world, BlockPosition blockposition, Random random) {
+ if (!b_(iblockdata, world, blockposition)) {
++ // CraftBukkit start
++ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, this.c.getBlockData().set(BlockCoralFanWall.a, Boolean.valueOf(false)).set(BlockCoralFanWall.b, iblockdata.get(BlockCoralFanWall.b))).isCancelled()) {
++ return;
++ }
++ // CraftBukkit end
+ world.setTypeAndData(blockposition, (IBlockData) ((IBlockData) this.c.getBlockData().set(BlockCoralFanWall.a, Boolean.valueOf(false))).set(BlockCoralFanWall.b, iblockdata.get(BlockCoralFanWall.b)), 2);
+ }
+