|
@@ -68,10 +68,6 @@ public final class ConfigHandler {
|
|
return handler;
|
|
return handler;
|
|
}
|
|
}
|
|
|
|
|
|
- private final Path jsonPath;
|
|
|
|
- private final Config config;
|
|
|
|
- private final GuiBuilder guiBuilder;
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Gets the {@link ConfigHandler} for the specified owner if that owner created a config before.
|
|
* Gets the {@link ConfigHandler} for the specified owner if that owner created a config before.
|
|
*
|
|
*
|
|
@@ -82,6 +78,10 @@ public final class ConfigHandler {
|
|
return Optional.ofNullable(HANDLERS.get(owner));
|
|
return Optional.ofNullable(HANDLERS.get(owner));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private final Path jsonPath;
|
|
|
|
+ private final Config config;
|
|
|
|
+ private final GuiBuilder guiBuilder;
|
|
|
|
+
|
|
private ConfigHandler(String modID, Path jsonPath, List<ConfigCategory> topLevelCategories, GuiBuilder guiBuilder) {
|
|
private ConfigHandler(String modID, Path jsonPath, List<ConfigCategory> topLevelCategories, GuiBuilder guiBuilder) {
|
|
this.jsonPath = jsonPath;
|
|
this.jsonPath = jsonPath;
|
|
config = new Config(modID, topLevelCategories, load());
|
|
config = new Config(modID, topLevelCategories, load());
|