Skip to content

Commit 79bfba0

Browse files
committed
Added BlowGrowEvent call to FrostedIceBlock
1 parent bd74bf6 commit 79bfba0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

paper-server/patches/sources/net/minecraft/world/level/block/FrostedIceBlock.java.patch

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818
}
1919

20-
@@ -60,7 +_,7 @@
20+
@@ -60,13 +_,13 @@
2121
}
2222
}
2323

@@ -26,3 +26,10 @@
2626
}
2727

2828
private boolean slightlyMelt(BlockState state, Level level, BlockPos pos) {
29+
int ageValue = state.getValue(AGE);
30+
if (ageValue < 3) {
31+
- level.setBlock(pos, state.setValue(AGE, ageValue + 1), Block.UPDATE_CLIENTS);
32+
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(level, pos, state.setValue(AGE, ageValue + 1), Block.UPDATE_CLIENTS); // Paper - FrostedIce BlockGrowEvent
33+
return false;
34+
} else {
35+
this.melt(state, level, pos);

0 commit comments

Comments
 (0)