mirror of
https://github.com/SKCraft/Launcher.git
synced 2025-03-31 17:45:42 +02:00
Force attached version manifest's ID to be that of the game version
Without this, you have to modify the attached version.json file first, which is a pain.
This commit is contained in:
parent
fd506bda61
commit
76ce28c959
@ -93,6 +93,10 @@ public class PackageBuilder {
|
||||
|
||||
public void writeManifest(@NonNull File path) throws IOException {
|
||||
manifest.setFeatures(applicator.getFeaturesInUse());
|
||||
VersionManifest versionManifest = manifest.getVersionManifest();
|
||||
if (versionManfiest != null) {
|
||||
versionManifest.setId(manifest.getGameVersion());
|
||||
}
|
||||
validateManifest();
|
||||
path.getAbsoluteFile().getParentFile().mkdirs();
|
||||
writer.writeValue(path, manifest);
|
||||
|
Loading…
Reference in New Issue
Block a user