Prefer Team#data() for team data

This commit is contained in:
Anuken
2021-06-07 15:04:45 -04:00
parent f4db208d75
commit 0582cfac2b
11 changed files with 12 additions and 14 deletions

View File

@@ -194,7 +194,7 @@ public class BlockRenderer{
}
if(brokenFade > 0.001f){
for(BlockPlan block : state.teams.get(player.team()).blocks){
for(BlockPlan block : player.team().data().blocks){
Block b = content.block(block.block);
if(!camera.bounds(Tmp.r1).grow(tilesize * 2f).overlaps(Tmp.r2.setSize(b.size * tilesize).setCenter(block.x * tilesize + b.offset, block.y * tilesize + b.offset))) continue;