Skip to content

Commit b28457c

Browse files
committed
fix override system doesn't work
1 parent 33620fa commit b28457c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/maxgamer/quickshop/localization/text/SimpleTextManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ private void applyOverrideConfiguration(@NotNull JsonConfiguration distributionC
193193
if ("language-version".equals(key) || "config-version".equals(key) || "version".equals(key)) {
194194
continue;
195195
}
196-
distributionConfiguration.set(key, distributionConfiguration.get(key));
196+
Object content = overrideConfiguration.get(key);
197+
Util.debugLog("Override key " + key + " with content: " + content);
198+
distributionConfiguration.set(key, content);
197199
}
198200
}
199201

@@ -234,9 +236,7 @@ private JsonConfiguration getOverrideConfiguration(@NotNull String overrideFile,
234236
localOverrideFile.getParentFile().mkdirs();
235237
localOverrideFile.createNewFile();
236238
}
237-
JsonConfiguration configuration = new JsonConfiguration();
238-
configuration.loadFromString(Util.readToString(localOverrideFile));
239-
return configuration;
239+
return JsonConfiguration.loadConfiguration(localOverrideFile);
240240
}
241241

242242
/**

0 commit comments

Comments
 (0)