PaperMC/nms-patches/BlockIce.patch

15 lines
625 B
Diff
Raw Normal View History

2015-05-25 20:37:24 +10:00
--- a/net/minecraft/server/BlockIce.java
+++ b/net/minecraft/server/BlockIce.java
2019-12-11 09:00:00 +11:00
@@ -36,6 +36,11 @@
2016-03-01 08:32:46 +11:00
}
2019-04-23 12:00:00 +10:00
protected void melt(IBlockData iblockdata, World world, BlockPosition blockposition) {
2016-03-01 08:32:46 +11:00
+ // CraftBukkit start
2020-06-25 10:00:00 +10:00
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, world.getDimensionManager().isNether() ? Blocks.AIR.getBlockData() : Blocks.WATER.getBlockData()).isCancelled()) {
2016-03-01 08:32:46 +11:00
+ return;
+ }
+ // CraftBukkit end
2020-06-25 10:00:00 +10:00
if (world.getDimensionManager().isNether()) {
2019-04-23 12:00:00 +10:00
world.a(blockposition, false);
2016-03-01 08:32:46 +11:00
} else {