Fixed crashes with team IDs above 127
This commit is contained in:
@@ -631,7 +631,7 @@ public class Block extends UnlockableContent{
|
||||
//load specific team regions
|
||||
teamRegions = new TextureRegion[Team.all.length];
|
||||
for(Team team : Team.all){
|
||||
teamRegions[team.uid] = teamRegion.found() ? Core.atlas.find(name + "-team-" + team.name, teamRegion) : teamRegion;
|
||||
teamRegions[team.id] = teamRegion.found() ? Core.atlas.find(name + "-team-" + team.name, teamRegion) : teamRegion;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ public class Tile implements Position, QuadTreeObject, Displayable{
|
||||
return build == null ? y : build.tile.y;
|
||||
}
|
||||
|
||||
public byte getTeamID(){
|
||||
public int getTeamID(){
|
||||
return team().id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user