mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
14 lines
625 B
Diff
14 lines
625 B
Diff
--- a/net/minecraft/server/BlockIce.java
|
|
+++ b/net/minecraft/server/BlockIce.java
|
|
@@ -36,6 +36,11 @@
|
|
}
|
|
|
|
protected void melt(IBlockData iblockdata, World world, BlockPosition blockposition) {
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, world.getDimensionManager().isNether() ? Blocks.AIR.getBlockData() : Blocks.WATER.getBlockData()).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
if (world.getDimensionManager().isNether()) {
|
|
world.a(blockposition, false);
|
|
} else {
|