apparently . is converted into a folder and becomes .\ instead of .voxy

This commit is contained in:
mcrcortex
2025-05-29 23:26:53 +10:00
parent 6c6c08d188
commit 985fa4b53c

View File

@@ -85,16 +85,13 @@ public class VoxyClientInstance extends VoxyInstance {
} }
} }
try { if (config == null) {
config = DEFAULT_STORAGE_CONFIG; config = DEFAULT_STORAGE_CONFIG;
}
try { try {
Files.writeString(json, Serialization.GSON.toJson(config)); Files.writeString(json, Serialization.GSON.toJson(config));
} catch (IOException e) {
throw new RuntimeException(e);
}
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException("Failed to deserialize the default config, aborting!", e); throw new RuntimeException("Failed write the config, aborting!", e);
} }
if (config == null) { if (config == null) {
throw new IllegalStateException("Config is still null\n"); throw new IllegalStateException("Config is still null\n");
@@ -150,7 +147,7 @@ public class VoxyClientInstance extends VoxyInstance {
} }
} }
} }
return basePath.toAbsolutePath(); return basePath;
} }
/* /*