Added config settings for power net, closes #112
This commit is contained in:
parent
8c421d20dd
commit
44c5037b28
3 changed files with 21 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
package techreborn.config;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
|
||||
|
@ -77,6 +78,8 @@ public class ConfigTechReborn {
|
|||
public static int farmEu;
|
||||
public static int aesuMaxOutput;
|
||||
public static int aesuMaxStorage;
|
||||
public static boolean enableRF;
|
||||
public static boolean enableEU;
|
||||
// Charge
|
||||
public static int AdvancedDrillCharge;
|
||||
public static int LapotronPackCharge;
|
||||
|
@ -336,6 +339,16 @@ public class ConfigTechReborn {
|
|||
StatCollector.translateToLocal("config.techreborn.aesuMaxStorage.tooltip"))
|
||||
.getInt();
|
||||
|
||||
enableRF = config
|
||||
.get(CATEGORY_POWER, StatCollector.translateToLocal("config.techreborn.enableRF"), !Loader.isModLoaded("IC2"),
|
||||
StatCollector.translateToLocal("config.techreborn.enableRF.tooltip"))
|
||||
.getBoolean();
|
||||
|
||||
enableEU = config
|
||||
.get(CATEGORY_POWER, StatCollector.translateToLocal("config.techreborn.enableEU"), Loader.isModLoaded("IC2"),
|
||||
StatCollector.translateToLocal("config.techreborn.enableEU"))
|
||||
.getBoolean();
|
||||
|
||||
// Charge
|
||||
AdvancedDrillCharge = config
|
||||
.get(CATEGORY_POWER, StatCollector.translateToLocal("config.techreborn.advancedDrillMaxCharge"), 60000,
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
package techreborn.powerSystem;
|
||||
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
|
||||
public class PowerSystem {
|
||||
|
||||
public static boolean RFPOWENET = true;
|
||||
public static boolean RFPOWENET = ConfigTechReborn.enableRF;
|
||||
|
||||
public static boolean EUPOWENET = true;
|
||||
public static boolean EUPOWENET = ConfigTechReborn.enableEU;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue