mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-27 23:46:01 +00:00
Ignore the iris/mcpf configs, hardcode angelica-modules.cfg filename
This commit is contained in:
1 parent
6e3235a985
commit
c34290d182
2 files changed
+4
-1
No files matched your search
@@ -24,11 +24,13 @@ public class AngelicaConfig {
|
||||
@Config.Comment("Enable Iris Shaders [Requires Sodium]")
|
||||
@Config.DefaultBoolean(false)
|
||||
@Config.RequiresMcRestart
|
||||
@Config.Ignore()
|
||||
public static boolean enableIris;
|
||||
|
||||
@Config.Comment("Enable MCPatcherForge features, still in Alpha. Individual features are toggled in mcpatcher.json")
|
||||
@Config.DefaultBoolean(false)
|
||||
@Config.RequiresMcRestart
|
||||
@Config.Ignore()
|
||||
public static boolean enableMCPatcherForgeFeatures;
|
||||
|
||||
@Config.Comment("Enable NotFine optimizations")
|
||||
|
||||
@@ -59,7 +59,8 @@ public class ConfigurationManager {
|
||||
.orElseThrow(() -> new ConfigException(
|
||||
"Config class " + configClass.getName() + " has an empty category!"));
|
||||
val rawConfig = configs.computeIfAbsent(cfg.modid(), (ignored) -> {
|
||||
val c = new Configuration(configDir.resolve(cfg.modid() + ".cfg").toFile());
|
||||
// Angelica only -- Make a cfg.filenameOverride() or something for generic use
|
||||
val c = new Configuration(configDir.resolve(cfg.modid() + "-modules.cfg").toFile());
|
||||
c.load();
|
||||
return c;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user