2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/block/BlockIce.java
|
|
|
|
+++ b/net/minecraft/world/level/block/BlockIce.java
|
2021-11-21 23:00:00 +01:00
|
|
|
@@ -49,6 +49,11 @@
|
2016-02-29 22:32:46 +01:00
|
|
|
}
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
protected void melt(IBlockData iblockdata, World world, BlockPosition blockposition) {
|
2016-02-29 22:32:46 +01:00
|
|
|
+ // CraftBukkit start
|
2021-11-21 23:00:00 +01:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, world.dimensionType().ultraWarm() ? Blocks.AIR.defaultBlockState() : Blocks.WATER.defaultBlockState()).isCancelled()) {
|
2016-02-29 22:32:46 +01:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2021-11-21 23:00:00 +01:00
|
|
|
if (world.dimensionType().ultraWarm()) {
|
|
|
|
world.removeBlock(blockposition, false);
|
2016-02-29 22:32:46 +01:00
|
|
|
} else {
|