mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-22 20:48:33 +07:00
Skip loading team regions for teams without palettes
This commit is contained in:
parent
d401d7838c
commit
0bd1b4eedc
@ -843,7 +843,7 @@ public class Block extends UnlockableContent{
|
||||
//load specific team regions
|
||||
teamRegions = new TextureRegion[Team.all.length];
|
||||
for(Team team : Team.all){
|
||||
teamRegions[team.id] = teamRegion.found() ? Core.atlas.find(name + "-team-" + team.name, teamRegion) : teamRegion;
|
||||
teamRegions[team.id] = teamRegion.found() && team.hasPalette ? Core.atlas.find(name + "-team-" + team.name, teamRegion) : teamRegion;
|
||||
}
|
||||
|
||||
if(variants != 0){
|
||||
|
Loading…
Reference in New Issue
Block a user