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

15 Zeilen
609 B
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/BlockIce.java
+++ b/net/minecraft/server/BlockIce.java
2019-04-23 04:00:00 +02:00
@@ -41,6 +41,11 @@
2016-02-29 22:32:46 +01:00
}
2019-04-23 04:00:00 +02:00
protected void melt(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()) {
2019-04-23 04:00:00 +02:00
world.a(blockposition, false);
2016-02-29 22:32:46 +01:00
} else {