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