Force ModuleController to generate config entries even when mods are missing.

This commit is contained in:
Sunstrike committed 2014-04-26 17:58:00 +01:00
1 parent 3dc4930b72
commit 928825eb61
1 file changed
+4 -2
+4 -2
View File
@@ -82,7 +82,7 @@ public class ModuleController {
*/
public boolean registerModule(Class<? extends ILoadableModule> mod) {
String mID = getModId(mod);
if (mID == null || !Loader.isModLoaded(mID)) return false;
if (mID == null) return false;
boolean allowedByConf = true;
if (config != null) {
@@ -91,7 +91,9 @@ public class ModuleController {
config.save();
}
return allowedByConf && doSetup(mod, mID);
if (!allowedByConf || !Loader.isModLoaded(mID)) return false;
return doSetup(mod, mID);
}
/**