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