This commit is contained in:
Burning_TNT authored and GitHub committed 2023-06-23 18:10:48 +08:00
1 parent a5858495ef
commit 9092c8b7a6
1 file changed
+1 -1
@@ -49,7 +49,7 @@ public final class GameVersion {
private static Optional<String> getVersionFromJson(InputStream versionJson) {
try {
Map<?, ?> version = JsonUtils.fromNonNullJsonFully(versionJson, Map.class);
return tryCast(version.get("name"), String.class);
return tryCast(version.get("id"), String.class);
} catch (IOException | JsonParseException e) {
LOG.log(Level.WARNING, "Failed to parse version.json", e);
return Optional.empty();