aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/level/block/BlockIce.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/BlockIce.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/level/block/BlockIce.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/BlockIce.patch b/patch-remap/og/net/minecraft/world/level/block/BlockIce.patch
new file mode 100644
index 0000000000..7164cce2f7
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/level/block/BlockIce.patch
@@ -0,0 +1,14 @@
+--- a/net/minecraft/world/level/block/BlockIce.java
++++ b/net/minecraft/world/level/block/BlockIce.java
+@@ -59,6 +59,11 @@
+ }
+
+ protected void melt(IBlockData iblockdata, World world, BlockPosition blockposition) {
++ // CraftBukkit start
++ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, world.dimensionType().ultraWarm() ? Blocks.AIR.defaultBlockState() : Blocks.WATER.defaultBlockState()).isCancelled()) {
++ return;
++ }
++ // CraftBukkit end
+ if (world.dimensionType().ultraWarm()) {
+ world.removeBlock(blockposition, false);
+ } else {