mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-01-03 17:52:15 +01:00
Documented the if statement introduced in the previous commit
This commit is contained in:
parent
0f81b28630
commit
50896a24e7
1 changed files with 4 additions and 2 deletions
|
@ -258,8 +258,10 @@ public final class Scoreboard {
|
|||
addScores.add(score.getCachedInfo());
|
||||
}
|
||||
|
||||
// we need this as long as MCPE-143063 hasn't been fixed
|
||||
if (add && score.getUpdateType() != ADD && !objectiveUpdate) {
|
||||
// we need this as long as MCPE-143063 hasn't been fixed.
|
||||
// the checks after 'add' are there to prevent removing scores that
|
||||
// are going to be removed anyway / don't need to be removed
|
||||
if (add && score.getUpdateType() != ADD && !(objectiveUpdate || objectiveAdd)) {
|
||||
removeScores.add(score.getCachedInfo());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue