9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-23 17:09:19 +00:00

fix SnowyBlockBehavior.java

fix
This commit is contained in:
MrPanda8
2025-11-13 22:17:03 +03:00
committed by GitHub
parent 4035ba5c9b
commit f549438a75

View File

@@ -30,7 +30,8 @@ public class SnowyBlockBehavior extends BukkitBlockBehavior {
if (args[updateShape$direction] != CoreReflections.instance$Direction$UP) return superMethod.call(); if (args[updateShape$direction] != CoreReflections.instance$Direction$UP) return superMethod.call();
ImmutableBlockState state = BlockStateUtils.getOptionalCustomBlockState(args[0]).orElse(null); ImmutableBlockState state = BlockStateUtils.getOptionalCustomBlockState(args[0]).orElse(null);
if (state == null || state.isEmpty()) return superMethod.call(); if (state == null || state.isEmpty()) return superMethod.call();
return state.with(this.snowyProperty, isSnowySetting(args[updateShape$neighborState])); ImmutableBlockState newState = state.with(this.snowyProperty, isSnowySetting(args[updateShape$neighborState]));
return newState.customBlockState().literalObject();
} }
@Override @Override