mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-03 11:26:38 -04:00
update
This commit is contained in:
parent
2efea1ab08
commit
6e898149ab
@ -219,7 +219,9 @@ public class DefaultGameRepository implements GameRepository {
|
||||
// fix inheritsFrom of versions that inherits from version [from].
|
||||
for (Version version : getVersions()) {
|
||||
if (from.equals(version.getInheritsFrom())) {
|
||||
JsonUtils.writeToJsonFile(getVersionJson(version.getId()).toPath(), version.setInheritsFrom(to));
|
||||
Path targetPath = getVersionJson(version.getId()).toPath();
|
||||
Files.createDirectories(targetPath.getParent());
|
||||
JsonUtils.writeToJsonFile(targetPath, version.setInheritsFrom(to));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user