More crash fixes

This commit is contained in:
Anuken
2019-09-25 12:24:30 -04:00
parent 5edf70103f
commit 1462402519
2 changed files with 6 additions and 3 deletions

View File

@@ -50,8 +50,11 @@ public class Pathfinder implements Runnable{
}
}
//special preset which may help speed things up; this is optional
preloadPath(waveTeam, PathTarget.enemyCores);
//run next frame to try and prevent a crash
Core.app.post(() -> {
//special preset which may help speed things up; this is optional
preloadPath(waveTeam, PathTarget.enemyCores);
});
start();
});

View File

@@ -178,7 +178,7 @@ public class UI implements ApplicationListener, Loadable{
@Override
public void update(){
if(disableUI) return;
if(disableUI || Core.scene == null) return;
Core.scene.act();
Core.scene.draw();