mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-26 23:03:15 +00:00
Force ModuleController to generate config entries even when mods are missing.
This commit is contained in:
1 parent
3dc4930b72
commit
928825eb61
1 file changed
+4
-2
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user