mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 04:55:47 +01:00
16 lines
759 B
Diff
16 lines
759 B
Diff
--- a/net/minecraft/server/BlockIce.java
|
|
+++ b/net/minecraft/server/BlockIce.java
|
|
@@ -44,6 +44,12 @@
|
|
|
|
public void b(World world, BlockPosition blockposition, IBlockData iblockdata, Random random) {
|
|
if (world.b(EnumSkyBlock.BLOCK, blockposition) > 11 - this.p()) {
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()), world.worldProvider.n() ? Blocks.AIR : Blocks.WATER).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
+
|
|
if (world.worldProvider.n()) {
|
|
world.setAir(blockposition);
|
|
} else {
|