Fixed Controller always using the base usage even when turned off. Fixes #2478

This commit is contained in:
raoulvdberge
2020-04-26 16:03:27 +02:00
parent 02d6ac253e
commit 7394396a0a
2 changed files with 2 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
- Added a new experimental autocrafting engine that's enabled by default. This should improve autocrafting performance (Darkere)
- Wireless Transmitters can now be placed on any block and in any direction (raoulvdberge)
- Fixed Exporter not exporting anything when using a Stack Upgrade and there isn't space for 64 items in the inventory (raoulvdberge)
- Fixed Controller always using the base usage even when turned off (raoulvdberge)
### 1.8.2
- Add Refined Storage silicon to forge:silicon tag for mod compatibility (jeremiahwinsley)

View File

@@ -519,7 +519,7 @@ public class Network implements INetwork, IRedstoneConfigurable {
}
private void updateEnergyUsage() {
int usage = RS.SERVER_CONFIG.getController().getBaseUsage();
int usage = redstoneMode.isEnabled(world, pos) ? RS.SERVER_CONFIG.getController().getBaseUsage() : 0;
for (INetworkNode node : nodeGraph.all()) {
if (node.isActive()) {