From 96c1b6ca25ac58f7a1e73e2e49904325a059cd70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Tue, 29 Dec 2020 17:27:39 +0100 Subject: [PATCH] Small rename. --- .../common/block/entity/RedstoneInterfaceTileEntity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/li/cil/oc2/common/block/entity/RedstoneInterfaceTileEntity.java b/src/main/java/li/cil/oc2/common/block/entity/RedstoneInterfaceTileEntity.java index 378cf641..fbbe392d 100644 --- a/src/main/java/li/cil/oc2/common/block/entity/RedstoneInterfaceTileEntity.java +++ b/src/main/java/li/cil/oc2/common/block/entity/RedstoneInterfaceTileEntity.java @@ -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(); }