Refactor out likely inconcequential optimisation
@@ -46,7 +46,7 @@ public byte getFixedValue(Block block, Vector3i pos) {
@Override
public byte propagateValue(byte existingValue, Side side, Block from) {
if (side == Side.BOTTOM) {
- return (existingValue == ChunkConstants.MAX_SUNLIGHT_REGEN) ? existingValue : (byte) (existingValue + 1);
+ return (byte) Math.min(existingValue, ChunkConstants.MAX_SUNLIGHT_REGEN);
}
return 0;
}
