aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/GTplusplus.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/GTplusplus.java')
-rw-r--r--src/Java/gtPlusPlus/GTplusplus.java27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/Java/gtPlusPlus/GTplusplus.java b/src/Java/gtPlusPlus/GTplusplus.java
index 6479a1d447..bfa264085c 100644
--- a/src/Java/gtPlusPlus/GTplusplus.java
+++ b/src/Java/gtPlusPlus/GTplusplus.java
@@ -58,6 +58,9 @@ public class GTplusplus implements ActionListener {
new File(event.getModConfigurationDirectory(), "GTplusplus/GTplusplus.cfg"));
config.load();
+ CORE.configSwitches.enableUpdateChecker = config.getBoolean("enableUpdateChecker", "debug", true,
+ "Stops mod checking for updates.");
+
// Debug
DEBUG = config.getBoolean("debugMode", "debug", false,
"Enables all sorts of debug logging. (Don't use unless told to, breaks other things.)");
@@ -158,7 +161,7 @@ public class GTplusplus implements ActionListener {
"gregtech", true, "Large scale sifting.");
CORE.configSwitches.enableMachine_ThermalBoiler = config.getBoolean("enableMachineThermalBoiler",
"gregtech", true, "Thermal Boiler from GT4. Can Filter Lava for resources.");
-
+
// Options
RF2EU_Battery.rfPerEU = config.getInt("rfUsedPerEUForUniversalBatteries", "configurables", 4, 1, 1000,
"How much RF is a single unit of EU worth? (Most mods use 4:1 ratio)");
@@ -176,8 +179,8 @@ public class GTplusplus implements ActionListener {
"BlacklistedTileEntiyClassNames", "gregtech",
BlacklistedTileEntiyClassNames,
"The Canonical Class-Names of TileEntities that should be ignored by the WorldAccelerator");
-
-
+
+
config.save();
}
@@ -196,20 +199,22 @@ public class GTplusplus implements ActionListener {
@Mod.EventHandler
public void preInit(final FMLPreInitializationEvent event) {
Utils.LOG_INFO("Loading " + CORE.name + " V" + CORE.VERSION);
-
+
if(!Utils.isServer()){
CORE.mEnableCape = true;
}
-
+
//HTTP Requests
CORE.MASTER_VERSION = NetworkUtils.getContentFromURL("https://raw.githubusercontent.com/draknyte1/GTplusplus/master/Recommended.txt").toLowerCase();
CORE.USER_COUNTRY = GeoUtils.determineUsersCountry();
-
+
// Handle GT++ Config
handleConfigFile(event);
-
+
CORE.DEVENV = (Boolean) Launch.blackboard.get("fml.deobfuscatedEnvironment");
- Utils.LOG_INFO("Latest is " + CORE.MASTER_VERSION + ". Updated? " + Utils.isModUpToDate());
+ if (CORE.configSwitches.enableUpdateChecker){
+ Utils.LOG_INFO("Latest is " + CORE.MASTER_VERSION + ". Updated? " + Utils.isModUpToDate());
+ }
Utils.LOG_INFO("User's Country: " + CORE.USER_COUNTRY);
// FirstCall();
@@ -220,11 +225,11 @@ public class GTplusplus implements ActionListener {
/*try {
CustomGTMaterials.run();
} catch (Throwable t){}*/
-
+
if (CORE.configSwitches.enableOldGTcircuits && CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK){
removeCircuitRecipeMap(); //Bye shitty recipes.
}
-
+
// HANDLER_GT.mMaterialProperties = new GT_Config(new Configuration(new
// File(new File(event.getModConfigurationDirectory(), "GTplusplus"),
// "MaterialProperties.cfg")));
@@ -258,7 +263,7 @@ public class GTplusplus implements ActionListener {
this.dumpGtRecipeMap(Gregtech_Recipe_Map.sMatterFab2Recipes);
this.dumpGtRecipeMap(Gregtech_Recipe_Map.sAlloyBlastSmelterRecipes);
}
-
+
/*for (Materials s : gtPlusPlus.core.material.gregtech.CustomGTMaterials.Custom_GT_Materials){
Utils.LOG_INFO("Verification for New Material: "+s.mName);
}*/