mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Only check the TeamColor of active objectives
This commit is contained in:
parent
483a336b8a
commit
582da8b88a
1 changed files with 7 additions and 0 deletions
|
@ -150,6 +150,13 @@ public final class Scoreboard {
|
|||
continue;
|
||||
}
|
||||
|
||||
// there's nothing we can do with inactive objectives
|
||||
// after checking if the objective has been deleted,
|
||||
// except waiting for the objective to become activated (:
|
||||
if (!objective.isActive()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (playerTeam != null && playerTeam.getColor() == objective.getTeamColor()) {
|
||||
correctSidebar = objective;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue