PaperMC/nms-patches/BlockIce.patch

15 lines
604 B
Diff
Raw Normal View History

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/BlockIce.java
+++ b/net/minecraft/server/BlockIce.java
2018-07-15 02:00:00 +02:00
@@ -52,6 +52,11 @@
2016-02-29 22:32:46 +01:00
}
2018-07-15 02:00:00 +02:00
protected void b(IBlockData iblockdata, World world, BlockPosition blockposition) {
2016-02-29 22:32:46 +01:00
+ // CraftBukkit start
2018-07-15 02:00:00 +02:00
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, world.worldProvider.isNether() ? Blocks.AIR.getBlockData() : Blocks.WATER.getBlockData()).isCancelled()) {
2016-02-29 22:32:46 +01:00
+ return;
+ }
+ // CraftBukkit end
2018-07-15 02:00:00 +02:00
if (world.worldProvider.isNether()) {
2016-02-29 22:32:46 +01:00
world.setAir(blockposition);
} else {