We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1524d7a commit a46b982Copy full SHA for a46b982
src/main/java/com/falsepattern/lib/config/ConfigurationManager.java
@@ -72,7 +72,11 @@ public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
72
private static void processConfig(Class<?> configClass) throws IllegalAccessException {
73
val cfg = configClass.getAnnotation(Config.class);
74
val category = cfg.category();
75
- val rawConfig = new Configuration(configDir.resolve(cfg.name()).toFile());
+ var configName = cfg.name().trim();
76
+ if (configName.length() == 0) {
77
+ configName = cfg.modid();
78
+ }
79
+ val rawConfig = new Configuration(configDir.resolve(configName + ".cfg").toFile());
80
val cat = rawConfig.getCategory(category);
81
82
for (val field: configClass.getDeclaredFields()) {
0 commit comments