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

@@ -286,7 +286,7 @@ public class HudFragment extends Fragment{
.update(label -> label.color.set(Color.orange).lerp(Color.scarlet, Mathf.absin(Time.time, 2f, 1f))), true,
() -> {
if(!shown || state.isPaused()) return false;
if(state.isMenu() || !state.teams.get(player.team()).hasCore()){
if(state.isMenu() || !player.team().data().hasCore()){
coreAttackTime[0] = 0f;
return false;
}