Skip to content

Commit

Permalink
Fix for architectury API
Browse files Browse the repository at this point in the history
  • Loading branch information
aellul27 authored Feb 29, 2024
1 parent 26bbca0 commit 7582a63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static void init() {
"config_version": %s
}""", version.substring(0, 4));

File configFile = Config.createFile(FMLPaths.CONFIGDIR.get() + "simplyswords_extra/backupconfig.json", defaultConfig, false);
File configFile = Config.createFile(Platform.getConfigFolder() + "simplyswords_extra/backupconfig.json", defaultConfig, false);
JsonObject json = Config.getJsonObject(Config.readFile(configFile));
if (json.has("config_version") && version.startsWith(json.get("config_version").getAsString())) {
isConfigOutdated = false;
Expand Down

0 comments on commit 7582a63

Please sign in to comment.