mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 20:30:28 +01:00
15 lines
610 B
Diff
15 lines
610 B
Diff
--- a/net/minecraft/server/BlockIce.java
|
|
+++ b/net/minecraft/server/BlockIce.java
|
|
@@ -50,6 +50,11 @@
|
|
}
|
|
|
|
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 {
|