1
0
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:
Albert Pham 2014-02-17 20:17:05 -08:00
parent fd506bda61
commit 76ce28c959

View File

@ -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);