Web compilation fix, new logging, cleanup

This commit is contained in:
Anuken
2018-01-24 18:48:59 -05:00
parent 3900258b6c
commit 8b2f63ecb6
15 changed files with 43 additions and 35 deletions

View File

@@ -41,6 +41,7 @@ public class Mindustry extends ModuleCore {
@Override
public void dispose() {
GameState.set(State.menu);
platforms.onGameExit();
Net.dispose();
super.dispose();
@@ -73,7 +74,7 @@ public class Mindustry extends ModuleCore {
Locale locale = Locale.ENGLISH;
Core.bundle = I18NBundle.createBundle(handle, locale);
}catch (Exception e){
e.printStackTrace();
UCore.error(e);
platforms.showError("Failed to find bundle!\nMake sure you have bundle.properties in the same directory\nas the jar file.\n\nIf the problem persists, try running it through the command prompt:\n" +
"Hold left-shift, then right click and select 'open command prompt here'.\nThen, type in 'java -jar mindustry.jar' without quotes.");
Gdx.app.exit();