mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
8398e12b34
By: md_5 <git@md-5.net>
14 lines
657 B
Diff
14 lines
657 B
Diff
--- a/net/minecraft/world/level/block/BlockIce.java
|
|
+++ b/net/minecraft/world/level/block/BlockIce.java
|
|
@@ -59,6 +59,11 @@
|
|
}
|
|
|
|
protected void melt(IBlockData iblockdata, World world, BlockPosition blockposition) {
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, world.dimensionType().ultraWarm() ? Blocks.AIR.defaultBlockState() : Blocks.WATER.defaultBlockState()).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
if (world.dimensionType().ultraWarm()) {
|
|
world.removeBlock(blockposition, false);
|
|
} else {
|