summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockIce.patch
blob: e7a337606fcfd9be2e5a6997750d15a60e9c19eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/net/minecraft/server/BlockIce.java
+++ b/net/minecraft/server/BlockIce.java
@@ -52,6 +52,11 @@
     }
 
     protected void b(IBlockData iblockdata, World world, BlockPosition blockposition) {
+        // CraftBukkit start
+        if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, world.worldProvider.isNether() ? Blocks.AIR.getBlockData() : Blocks.WATER.getBlockData()).isCancelled()) {
+            return;
+        }
+        // CraftBukkit end
         if (world.worldProvider.isNether()) {
             world.setAir(blockposition);
         } else {