aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/bloodasp/galacticgreg/GalacticGreg.java
diff options
context:
space:
mode:
authorNamikon <namikon@gmx.net>2015-10-29 14:13:38 +0100
committerNamikon <namikon@gmx.net>2015-10-29 14:13:38 +0100
commit8f86be389bb7b1f9a9d17c0d009602834ff1d93a (patch)
tree842ffd2c10e36619f4b82fbe3183c8007c80764c /src/main/java/bloodasp/galacticgreg/GalacticGreg.java
parent7a021c55d0e44e6f3dc46acf0040ead2df7a3846 (diff)
downloadGT5-Unofficial-8f86be389bb7b1f9a9d17c0d009602834ff1d93a.tar.gz
GT5-Unofficial-8f86be389bb7b1f9a9d17c0d009602834ff1d93a.tar.bz2
GT5-Unofficial-8f86be389bb7b1f9a9d17c0d009602834ff1d93a.zip
Removed SpaceDim registration. This is supposed to be done by an external mod.
Also removed the warning about misconfiguration, as this mod alone won't do anything by itself now
Diffstat (limited to 'src/main/java/bloodasp/galacticgreg/GalacticGreg.java')
-rw-r--r--src/main/java/bloodasp/galacticgreg/GalacticGreg.java53
1 files changed, 18 insertions, 35 deletions
diff --git a/src/main/java/bloodasp/galacticgreg/GalacticGreg.java b/src/main/java/bloodasp/galacticgreg/GalacticGreg.java
index 02f45a1187..f9a280bfc3 100644
--- a/src/main/java/bloodasp/galacticgreg/GalacticGreg.java
+++ b/src/main/java/bloodasp/galacticgreg/GalacticGreg.java
@@ -1,7 +1,5 @@
package bloodasp.galacticgreg;
-import gregtech.api.GregTech_API;
-
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
@@ -12,8 +10,6 @@ import bloodasp.galacticgreg.auxiliary.ProfilingStorage;
import bloodasp.galacticgreg.command.AEStorageCommand;
import bloodasp.galacticgreg.command.ProfilingCommand;
import bloodasp.galacticgreg.registry.GalacticGregRegistry;
-import bloodasp.galacticgreg.schematics.SpaceSchematic;
-import bloodasp.galacticgreg.schematics.SpaceSchematicFactory;
import bloodasp.galacticgreg.schematics.SpaceSchematicHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
@@ -50,15 +46,10 @@ public class GalacticGreg {
if (!GalacticConfig.LoadConfig())
GalacticGreg.Logger.warn("Something went wrong while reading GalacticGregs config file. Things will be wonky..");
- if (GalacticConfig.ProperConfigured)
- {
- GalacticRandom = new Random(System.currentTimeMillis());
-
- if (GalacticConfig.SchematicsEnabled)
- SchematicHandler = new SpaceSchematicHandler(aEvent.getModConfigurationDirectory());
- }
- else
- GalacticGreg.Logger.error("GalacticGreg will NOT continue to load. Please read the warnings and configure your config file!");
+ GalacticRandom = new Random(System.currentTimeMillis());
+
+ if (GalacticConfig.SchematicsEnabled)
+ SchematicHandler = new SpaceSchematicHandler(aEvent.getModConfigurationDirectory());
Logger.trace("Leaving PRELOAD");
}
@@ -72,21 +63,14 @@ public class GalacticGreg {
@EventHandler
public void onPostLoad(FMLPostInitializationEvent aEvent) {
Logger.trace("Entering POSTLOAD");
- if (GalacticConfig.ProperConfigured)
- {
- ModRegisterer atc = new ModRegisterer();
- if (atc.Init())
- atc.Register();
-
- if (!GalacticGregRegistry.InitRegistry())
- throw new RuntimeException("GalacticGreg registry has been finalized from a 3rd-party mod, this is forbidden!");
+
+ if (!GalacticGregRegistry.InitRegistry())
+ throw new RuntimeException("GalacticGreg registry has been finalized from a 3rd-party mod, this is forbidden!");
+
+ new WorldGenGaGT().run();
+
+ GalacticConfig.serverPostInit();
- new WorldGenGaGT().run();
-
- GalacticConfig.serverPostInit();
- }
- else
- GalacticGreg.Logger.error("GalacticGreg will NOT continue to load. Please read the warnings and configure your config file!");
Logger.trace("Leaving POSTLOAD");
}
@@ -98,14 +82,13 @@ public class GalacticGreg {
public void serverLoad(FMLServerStartingEvent pEvent)
{
Logger.trace("Entering SERVERLOAD");
- if (GalacticConfig.ProperConfigured)
- {
- if (GalacticConfig.ProfileOreGen)
- pEvent.registerServerCommand(new ProfilingCommand());
-
- if (Loader.isModLoaded("appliedenergistics2") && GalacticConfig.EnableAEExportCommand && GalacticConfig.SchematicsEnabled)
- pEvent.registerServerCommand(new AEStorageCommand());
- }
+
+ if (GalacticConfig.ProfileOreGen)
+ pEvent.registerServerCommand(new ProfilingCommand());
+
+ if (Loader.isModLoaded("appliedenergistics2") && GalacticConfig.EnableAEExportCommand && GalacticConfig.SchematicsEnabled)
+ pEvent.registerServerCommand(new AEStorageCommand());
+
Logger.trace("Leaving SERVERLOAD");
}
}