fix bad assets_version value

This commit is contained in:
Alexander Popov 2022-09-13 23:15:36 +03:00
parent fe3a0dce44
commit 9872fef555
Signed by: iiiypuk
GPG Key ID: D8C9B59A9F04A70C

View File

@ -85,7 +85,10 @@ void usage()
void info(cJSON *json)
{
char *assets_version = cJSON_GetStringValue(cJSON_GetObjectItem(json, "id"));
char *minecraft_version = cJSON_GetStringValue(cJSON_GetObjectItem(json, "id"));
printf("Minecraft Version: %s\n", minecraft_version);
char *assets_version = cJSON_GetStringValue(cJSON_GetObjectItem(json, "assets"));
printf("Minecraft Assets Version: %s\n", assets_version);
cJSON *libraries = cJSON_GetObjectItem(json, "libraries");