2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/BlockIce.java
|
|
|
|
+++ b/net/minecraft/server/BlockIce.java
|
2019-12-10 23:00:00 +01:00
|
|
|
@@ -36,6 +36,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
|
2020-06-25 02:00:00 +02:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, world.getDimensionManager().isNether() ? Blocks.AIR.getBlockData() : Blocks.WATER.getBlockData()).isCancelled()) {
|
2016-02-29 22:32:46 +01:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2020-06-25 02:00:00 +02:00
|
|
|
if (world.getDimensionManager().isNether()) {
|
2019-04-23 04:00:00 +02:00
|
|
|
world.a(blockposition, false);
|
2016-02-29 22:32:46 +01:00
|
|
|
} else {
|