More crash fixes
This commit is contained in:
@@ -50,8 +50,11 @@ public class Pathfinder implements Runnable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//special preset which may help speed things up; this is optional
|
//run next frame to try and prevent a crash
|
||||||
preloadPath(waveTeam, PathTarget.enemyCores);
|
Core.app.post(() -> {
|
||||||
|
//special preset which may help speed things up; this is optional
|
||||||
|
preloadPath(waveTeam, PathTarget.enemyCores);
|
||||||
|
});
|
||||||
|
|
||||||
start();
|
start();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ public class UI implements ApplicationListener, Loadable{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void update(){
|
public void update(){
|
||||||
if(disableUI) return;
|
if(disableUI || Core.scene == null) return;
|
||||||
|
|
||||||
Core.scene.act();
|
Core.scene.act();
|
||||||
Core.scene.draw();
|
Core.scene.draw();
|
||||||
|
|||||||
Reference in New Issue
Block a user