don't update comparator output level unless it actually changed

This commit is contained in:
quat committed 2018-08-16 00:40:31 -04:00
1 parent 81f33e8d74
commit 11d4926ed8
1 file changed
+3 -1
@@ -111,8 +111,10 @@ public class TileCorporeaCrystalCube extends TileCorporeaBase implements ICorpor
}
private void onUpdateCount() {
int oldCompValue = compValue;
compValue = CorporeaHelper.signalStrengthForRequestSize(itemCount);
world.updateComparatorOutputLevel(pos, world.getBlockState(pos).getBlock());
if(compValue != oldCompValue)
world.updateComparatorOutputLevel(pos, world.getBlockState(pos).getBlock());
}
@Override