mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
43702a9e10
By: md_5 <git@md-5.net>
15 lines
657 B
Diff
15 lines
657 B
Diff
--- a/net/minecraft/world/level/block/BlockIce.java
|
|
+++ b/net/minecraft/world/level/block/BlockIce.java
|
|
@@ -49,6 +49,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 {
|