Paper/nms-patches/BlockIce.patch

15 lines
610 B
Diff
Raw Normal View History

2015-05-25 18:37:24 +08:00
--- a/net/minecraft/server/BlockIce.java
+++ b/net/minecraft/server/BlockIce.java
2016-11-17 09:41:03 +08:00
@@ -47,6 +47,11 @@
2016-03-01 05:32:46 +08:00
}
2016-03-01 05:32:46 +08:00
protected void b(World world, BlockPosition blockposition) {
+ // CraftBukkit start
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()), world.worldProvider.l() ? Blocks.AIR : Blocks.WATER).isCancelled()) {
+ return;
+ }
+ // CraftBukkit end
if (world.worldProvider.l()) {
world.setAir(blockposition);
} else {