mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2024-11-22 10:06:16 +00:00
15 lines
657 B
Diff
15 lines
657 B
Diff
--- a/net/minecraft/world/level/block/BlockIce.java
|
|
+++ b/net/minecraft/world/level/block/BlockIce.java
|
|
@@ -60,6 +60,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 {
|