diff options
author | md_5 <git@md-5.net> | 2018-09-10 08:30:13 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-09-10 08:30:13 +1000 |
commit | 022b8c350a223f092e4fdbdce8ffb682f412fb29 (patch) | |
tree | 94a2f40ca6fb728488dc1f6b1e042db8c2843b67 /nms-patches | |
parent | 3123a069bf04af331ae9194d223a7fd376535949 (diff) | |
download | craftbukkit-022b8c350a223f092e4fdbdce8ffb682f412fb29.tar craftbukkit-022b8c350a223f092e4fdbdce8ffb682f412fb29.tar.gz craftbukkit-022b8c350a223f092e4fdbdce8ffb682f412fb29.tar.lz craftbukkit-022b8c350a223f092e4fdbdce8ffb682f412fb29.tar.xz craftbukkit-022b8c350a223f092e4fdbdce8ffb682f412fb29.zip |
SPIGOT-4361: BlockFadeEvent for regular coral
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/BlockCoralPlant.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nms-patches/BlockCoralPlant.patch b/nms-patches/BlockCoralPlant.patch new file mode 100644 index 00000000..dc5e8cdb --- /dev/null +++ b/nms-patches/BlockCoralPlant.patch @@ -0,0 +1,14 @@ +--- a/net/minecraft/server/BlockCoralPlant.java ++++ b/net/minecraft/server/BlockCoralPlant.java +@@ -18,6 +18,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(BlockCoralPlant.b, Boolean.valueOf(false))).isCancelled()) { ++ return; ++ } ++ // CraftBukkit end + world.setTypeAndData(blockposition, (IBlockData) this.c.getBlockData().set(BlockCoralPlant.b, Boolean.valueOf(false)), 2); + } + |