Fix auto-installing: missing checksums in game json

This commit is contained in:
huangyuhui
2018-08-19 11:58:02 +08:00
parent 2e1b6e4630
commit a4a833bfdb

View File

@@ -223,6 +223,7 @@ public class Library implements Comparable<Library> {
obj.addProperty("name", src.getName()); obj.addProperty("name", src.getName());
obj.addProperty("url", src.url); obj.addProperty("url", src.url);
obj.add("downloads", context.serialize(src.downloads)); obj.add("downloads", context.serialize(src.downloads));
obj.add("checksums", context.serialize(src.getChecksums()));
obj.add("extract", context.serialize(src.extract)); obj.add("extract", context.serialize(src.extract));
obj.add("natives", context.serialize(src.natives, new TypeToken<Map<OperatingSystem, String>>() { obj.add("natives", context.serialize(src.natives, new TypeToken<Map<OperatingSystem, String>>() {
}.getType())); }.getType()));