mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00: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());
|
addScores.add(score.getCachedInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
// we need this as long as MCPE-143063 hasn't been fixed
|
// we need this as long as MCPE-143063 hasn't been fixed.
|
||||||
if (add && score.getUpdateType() != ADD && !objectiveUpdate) {
|
// 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());
|
removeScores.add(score.getCachedInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue