Documented the if statement introduced in the previous commit

This commit is contained in:
Tim203 2021-09-30 23:04:32 +02:00
parent 0f81b28630
commit 50896a24e7
No known key found for this signature in database
GPG key ID: 064EE9F5BF7C3EE8

View file

@ -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());
}