diff options
Diffstat (limited to 'nms-patches/BlockIce.patch')
-rw-r--r-- | nms-patches/BlockIce.patch | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/nms-patches/BlockIce.patch b/nms-patches/BlockIce.patch index 05344a7e..b9d8696a 100644 --- a/nms-patches/BlockIce.patch +++ b/nms-patches/BlockIce.patch @@ -1,15 +1,14 @@ --- a/net/minecraft/server/BlockIce.java +++ b/net/minecraft/server/BlockIce.java -@@ -44,6 +44,12 @@ +@@ -50,6 +50,11 @@ + } - public void b(World world, BlockPosition blockposition, IBlockData iblockdata, Random random) { - if (world.b(EnumSkyBlock.BLOCK, blockposition) > 11 - this.p()) { -+ // CraftBukkit start -+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()), world.worldProvider.n() ? Blocks.AIR : Blocks.WATER).isCancelled()) { -+ return; -+ } -+ // CraftBukkit end -+ - if (world.worldProvider.n()) { - world.setAir(blockposition); - } else { + protected void b(World world, BlockPosition blockposition) { ++ // CraftBukkit start ++ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()), world.worldProvider.l() ? Blocks.AIR : Blocks.WATER).isCancelled()) { ++ return; ++ } ++ // CraftBukkit end + if (world.worldProvider.l()) { + world.setAir(blockposition); + } else { |