Change checkminecraftversion.sh to use versions.json

Issue #49 resolved
Evan Markowitz created an issue

Currently we use the somewhat inaccurate Tumblr to check Minecraft versions, we should probably use the official versions.json (which is how the launcher checks versions) located here

Seeing the json, you can tell how to parse it.... just array["latest"]["release"]

Comments (3)

  1. Riot

    Pulling latest version from json on amazon; i know this is already implemented in python but benchmarking produced times of 0.53 seconds in my implementation vs 0.78 seconds (consistently) in the python. Resolves #49.

    → <<cset 7c4df7c83daa>>

  2. Evan Markowitz reporter

    Sure, but, that's when you open the script standalone, which, McObot isn't, no? If so, I'll write a benchmark which compares opening your script as a subprocess and just importing l4mR's script on not startup and running the method.

  3. Log in to comment