fix(launcher): ensure minecraft versions are cached
This commit is contained in:
parent
356f80d25c
commit
602be371d1
|
@ -29,6 +29,7 @@ public class LauncherEnv {
|
||||||
try {
|
try {
|
||||||
McApi.getVersions();
|
McApi.getVersions();
|
||||||
JFiles.clearDirectory(MetaHolder.CACHE_DIR);
|
JFiles.clearDirectory(MetaHolder.CACHE_DIR);
|
||||||
|
McApi.getVersions(); // needed in UI, better to initialize it here
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Utils.LOGGER.error("Could not connect to the internet");
|
Utils.LOGGER.error("Could not connect to the internet");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user