diff options
author | md_5 <git@md-5.net> | 2018-12-06 10:00:00 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-12-06 10:00:00 +1100 |
commit | aa36c8417bda9bdd4812c6094895677654cff83d (patch) | |
tree | f28adbc34ebef8ef5816c95597927b4c72ba2797 /nms-patches/BlockCoralFanWall.patch | |
parent | 20fc5bea2c51de8d5239b68d83e878896b8ff505 (diff) | |
download | craftbukkit-aa36c8417bda9bdd4812c6094895677654cff83d.tar craftbukkit-aa36c8417bda9bdd4812c6094895677654cff83d.tar.gz craftbukkit-aa36c8417bda9bdd4812c6094895677654cff83d.tar.lz craftbukkit-aa36c8417bda9bdd4812c6094895677654cff83d.tar.xz craftbukkit-aa36c8417bda9bdd4812c6094895677654cff83d.zip |
Mappings Update
Diffstat (limited to 'nms-patches/BlockCoralFanWall.patch')
-rw-r--r-- | nms-patches/BlockCoralFanWall.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/BlockCoralFanWall.patch b/nms-patches/BlockCoralFanWall.patch index 87e1d415..224ce09c 100644 --- a/nms-patches/BlockCoralFanWall.patch +++ b/nms-patches/BlockCoralFanWall.patch @@ -5,10 +5,10 @@ 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.b, Boolean.valueOf(false)).set(BlockCoralFanWall.a, iblockdata.get(BlockCoralFanWall.a))).isCancelled()) { ++ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, this.c.getBlockData().set(BlockCoralFanWall.b, false).set(BlockCoralFanWall.a, iblockdata.get(BlockCoralFanWall.a))).isCancelled()) { + return; + } + // CraftBukkit end - world.setTypeAndData(blockposition, (IBlockData) ((IBlockData) this.c.getBlockData().set(BlockCoralFanWall.b, Boolean.valueOf(false))).set(BlockCoralFanWall.a, iblockdata.get(BlockCoralFanWall.a)), 2); + world.setTypeAndData(blockposition, (IBlockData) ((IBlockData) this.c.getBlockData().set(BlockCoralFanWall.b, false)).set(BlockCoralFanWall.a, iblockdata.get(BlockCoralFanWall.a)), 2); } |