2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/BlockIce.java
|
|
|
|
+++ b/net/minecraft/server/BlockIce.java
|
2016-05-10 13:47:39 +02:00
|
|
|
@@ -51,6 +51,11 @@
|
2016-02-29 22:32:46 +01:00
|
|
|
}
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2016-02-29 22:32:46 +01: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 {
|