summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockIce.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockIce.patch')
-rw-r--r--nms-patches/BlockIce.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/nms-patches/BlockIce.patch b/nms-patches/BlockIce.patch
new file mode 100644
index 00000000..91033f00
--- /dev/null
+++ b/nms-patches/BlockIce.patch
@@ -0,0 +1,15 @@
+--- ../work/decompile-bb26c12b/net/minecraft/server/BlockIce.java 2014-11-27 08:59:46.533422586 +1100
++++ src/main/java/net/minecraft/server/BlockIce.java 2014-11-27 08:42:10.168850880 +1100
+@@ -44,6 +44,12 @@
+
+ public void b(World world, BlockPosition blockposition, IBlockData iblockdata, Random random) {
+ if (world.b(EnumSkyBlock.BLOCK, blockposition) > 11 - this.n()) {
++ // 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 {