mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 08:38:45 +01:00
14 lines
604 B
Diff
14 lines
604 B
Diff
--- a/net/minecraft/server/BlockIce.java
|
|
+++ b/net/minecraft/server/BlockIce.java
|
|
@@ -52,6 +52,11 @@
|
|
}
|
|
|
|
protected void b(IBlockData iblockdata, World world, BlockPosition blockposition) {
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, world.worldProvider.isNether() ? Blocks.AIR.getBlockData() : Blocks.WATER.getBlockData()).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
if (world.worldProvider.isNether()) {
|
|
world.setAir(blockposition);
|
|
} else {
|