mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-14 22:37:06 -04:00
Fix malformd version settings leading to unmodifiable configuration
This commit is contained in:
parent
ccb1ff7f0e
commit
f7aeef3ffc
@ -131,6 +131,7 @@ public class HMCLGameRepository extends DefaultGameRepository {
|
||||
initVersionSetting(id, versionSetting);
|
||||
} catch (Exception ex) {
|
||||
// If [JsonParseException], [IOException] or [NullPointerException] happens, the json file is malformed and needed to be recreated.
|
||||
initVersionSetting(id, new VersionSetting());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user