fix(launcher): ensure minecraft versions are cached

This commit is contained in:
Johannes Frohnmeyer 2024-06-22 21:00:09 +02:00
parent 356f80d25c
commit 602be371d1
Signed by: Johannes
GPG Key ID: E76429612C2929F4

View File

@ -29,6 +29,7 @@ public class LauncherEnv {
try {
McApi.getVersions();
JFiles.clearDirectory(MetaHolder.CACHE_DIR);
McApi.getVersions(); // needed in UI, better to initialize it here
} catch (IOException e) {
Utils.LOGGER.error("Could not connect to the internet");
}