diff options
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/IceBlock.java.patch')
-rw-r--r-- | patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/IceBlock.java.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/IceBlock.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/IceBlock.java.patch new file mode 100644 index 0000000000..4edb78a100 --- /dev/null +++ b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/IceBlock.java.patch @@ -0,0 +1,16 @@ +--- a/net/minecraft/world/level/block/IceBlock.java ++++ b/net/minecraft/world/level/block/IceBlock.java +@@ -54,7 +58,12 @@ + } + } + +- protected void melt(BlockState state, Level level, BlockPos pos) { ++ protected void melt(IBlockData state, Level level, BlockPos pos) { ++ // CraftBukkit start ++ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(level, pos, level.dimensionType().ultraWarm() ? Blocks.AIR.defaultBlockState() : Blocks.WATER.defaultBlockState()).isCancelled()) { ++ return; ++ } ++ // CraftBukkit end + if (level.dimensionType().ultraWarm()) { + level.removeBlock(pos, false); + } else { |