Rename config key because of BC break
This commit is contained in:
@@ -47,7 +47,7 @@ public final class RefinedStorage {
|
|||||||
|
|
||||||
public List<ClientStack> items = new ArrayList<ClientStack>();
|
public List<ClientStack> items = new ArrayList<ClientStack>();
|
||||||
|
|
||||||
public int controllerUsage;
|
public int controllerBaseUsage;
|
||||||
public int cableUsage;
|
public int cableUsage;
|
||||||
public int constructorUsage;
|
public int constructorUsage;
|
||||||
public int crafterUsage;
|
public int crafterUsage;
|
||||||
@@ -87,7 +87,7 @@ public final class RefinedStorage {
|
|||||||
|
|
||||||
Configuration config = new Configuration(e.getSuggestedConfigurationFile());
|
Configuration config = new Configuration(e.getSuggestedConfigurationFile());
|
||||||
|
|
||||||
controllerUsage = config.getInt("controller", "energy", 0, 0, Integer.MAX_VALUE, "The base energy used by the Controller");
|
controllerBaseUsage = config.getInt("controllerBase", "energy", 0, 0, Integer.MAX_VALUE, "The base energy used by the Controller");
|
||||||
cableUsage = config.getInt("cable", "energy", 0, 0, Integer.MAX_VALUE, "The energy used by Cables");
|
cableUsage = config.getInt("cable", "energy", 0, 0, Integer.MAX_VALUE, "The energy used by Cables");
|
||||||
constructorUsage = config.getInt("constructor", "energy", 1, 0, Integer.MAX_VALUE, "The energy used by Constructors");
|
constructorUsage = config.getInt("constructor", "energy", 1, 0, Integer.MAX_VALUE, "The energy used by Constructors");
|
||||||
crafterUsage = config.getInt("crafter", "energy", 2, 0, Integer.MAX_VALUE, "The base energy used by Crafters");
|
crafterUsage = config.getInt("crafter", "energy", 2, 0, Integer.MAX_VALUE, "The base energy used by Crafters");
|
||||||
|
|||||||
@@ -696,7 +696,7 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
|
|||||||
@Override
|
@Override
|
||||||
public int getEnergyUsage() {
|
public int getEnergyUsage() {
|
||||||
if (!worldObj.isRemote) {
|
if (!worldObj.isRemote) {
|
||||||
int usage = RefinedStorage.INSTANCE.controllerUsage;
|
int usage = RefinedStorage.INSTANCE.controllerBaseUsage;
|
||||||
|
|
||||||
for (INetworkNode node : nodes) {
|
for (INetworkNode node : nodes) {
|
||||||
if (node.canUpdate()) {
|
if (node.canUpdate()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user