Separate UnknownDomain loading
@@ -50,8 +50,15 @@ public abstract class GameBase implements Game {
protected void constructStage() {
ImmutableMap.Builder<String, ModContainer> idToMapBuilder = ImmutableMap.builder();
ImmutableMap.Builder<Class, ModContainer> typeToMapBuilder = ImmutableMap.builder();
- ModLoaderWrapper loader = new ModLoaderWrapper().add(new JavaModLoader(modStore)).add(new UnknownDomain());
+
+ // Add UnknownDomain Mod
+ UnknownDomain ud = new UnknownDomain();
+ this.option.getMods().add(ud.getMetadata());
+
+ ModLoaderWrapper loader = new ModLoaderWrapper().add(new JavaModLoader(modStore));
// decorateLoader(loader);
+ // Always load UD first
+ loader.add(ud);
List<ModMetadata> mods = option.getMods();
Map<ModMetadata, ModDependencyEntry[]> map = mods.stream().map(m -> Pair.of(m, m.getDependencies().stream().toArray(ModDependencyEntry[]::new)))
