fixed a crash that shouldn't even happen

This commit is contained in:
Anuken 2019-08-24 11:52:14 -04:00
parent 7137616224
commit 97443a86cb
2 changed files with 2 additions and 1 deletions

View File

@ -225,6 +225,7 @@ public class UI implements ApplicationListener{
@Override
public void resize(int width, int height){
if(Core.scene == null) return;
Core.scene.resize(width, height);
Events.fire(new ResizeEvent());
}

View File

@ -97,7 +97,7 @@ public class CrashSender{
ex(() -> value.addChild("server", new JsonValue(fs)));
ex(() -> value.addChild("players", new JsonValue(Vars.playerGroup.size())));
ex(() -> value.addChild("state", new JsonValue(Vars.state.getState().name())));
ex(() -> value.addChild("os", new JsonValue(System.getProperty("os.name"))));
ex(() -> value.addChild("os", new JsonValue(System.getProperty("os.name") + (OS.is64Bit ? "64" : "32"))));
ex(() -> value.addChild("trace", new JsonValue(parseException(exception))));
boolean[] sent = {false};