Small rename.

This commit is contained in:
Florian Nücke
2020-12-29 17:27:39 +01:00
parent ced1fa4835
commit 96c1b6ca25

View File

@@ -101,12 +101,12 @@ public class RedstoneInterfaceTileEntity extends TileEntity implements NamedDevi
throw new IllegalArgumentException("invalid side");
}
final int clamped = MathHelper.clamp(value, 0, 15);
if (clamped == output[side]) {
final byte clampedValue = (byte) MathHelper.clamp(value, 0, 15);
if (clampedValue == output[side]) {
return;
}
output[side] = (byte) clamped;
output[side] = clampedValue;
notifyNeighbors();
}