Fixed some more bizarre bugs

This commit is contained in:
Anuken
2022-03-01 21:10:53 -05:00
parent 6df7106938
commit 76c972acfb
7 changed files with 31 additions and 8 deletions

View File

@@ -66,6 +66,15 @@ public class BlockIndexer{
quadHeight = Mathf.ceil(world.height() / (float)quadrantSize);
blocksPresent = new boolean[content.blocks().size];
//so WorldLoadEvent gets called twice sometimes... ugh
for(Team team : Team.all){
var data = state.teams.get(team);
if(data != null){
if(data.buildings != null) data.buildings.clear();
if(data.turrets != null) data.turrets.clear();
}
}
for(Tile tile : world.tiles){
process(tile);