Fixed inactive nodes taking energy.
@@ -602,7 +602,11 @@ public class TileController extends TileBase implements ITickable, INetwork, IRe
public int getEnergyUsage() {
int usage = RS.INSTANCE.config.controllerBaseUsage;
- usage += nodeGraph.all().stream().mapToInt(INetworkNode::getEnergyUsage).sum();
+ for (INetworkNode node : nodeGraph.all()) {
+ if (node.canUpdate()) {
+ usage += node.getEnergyUsage();
+ }
+ }
return usage;
}
