Skip to content

Commit 66d3bbe

Browse files
committed
Update frosted ice patch for 26.1
1 parent d0be5e2 commit 66d3bbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
}
2727

2828
private boolean slightlyMelt(final BlockState state, final Level level, final BlockPos pos) {
29-
int ageValue = state.getValue(AGE);
30-
if (ageValue < 3) {
29+
int age = state.getValue(AGE);
30+
if (age < 3) {
3131
+ // Paper start - FrostedIce BlockFadeEvent
32-
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(level, pos, state.setValue(AGE, ageValue + 1)).isCancelled()) {
32+
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(level, pos, state.setValue(AGE, age + 1)).isCancelled()) {
3333
+ return false;
3434
+ }
3535
+ // Paper end - FrostedIce BlockFadeEvent
36-
level.setBlock(pos, state.setValue(AGE, ageValue + 1), Block.UPDATE_CLIENTS);
36+
level.setBlock(pos, state.setValue(AGE, age + 1), Block.UPDATE_CLIENTS);
3737
return false;
3838
} else {

0 commit comments

Comments
 (0)