Skip to content

Commit

Permalink
API: more error log
Browse files Browse the repository at this point in the history
  • Loading branch information
way-zer committed Sep 2, 2024
1 parent f18ae88 commit 14a158d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/src/mindustry/core/Control.java
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ public void update(){
try{
assets.update();
}catch(Exception ignored){
Log.err(ignored);
}

input.updateState();
Expand Down
4 changes: 3 additions & 1 deletion core/src/mindustry/game/FogControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ public void run(){

updateStatic();
//ignore, don't want to crash this thread
}catch(Exception e){}
}catch(Exception e){
Log.err(e);
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions core/src/mindustry/game/Teams.java
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ public void updateCount(UnitType type, int amount){
}

public QuadTree<Unit> tree(){
if(world.height() == 0) throw new Error("World is loading");
if(unitTree == null) unitTree = new QuadTree<>(Vars.world.getQuadBounds(new Rect()));
return unitTree;
}
Expand Down

0 comments on commit 14a158d

Please sign in to comment.