mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 04:09:40 +00:00
don't update comparator output level unless it actually changed
This commit is contained in:
1 parent
81f33e8d74
commit
11d4926ed8
1 file changed
+3
-1
+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
|
||||
|
||||
Reference in new issue
Block a user