3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00
Paper/nms-patches/BlockIce.patch

15 Zeilen
604 B
Diff

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