The client handles the server sending the same score multiple times to overwrite the previous entry.
This commit is contained in:
parent
b25c81daf3
commit
539fccb873
@ -59,7 +59,6 @@ public class Scoreboard
|
|||||||
public void addScore(Score score)
|
public void addScore(Score score)
|
||||||
{
|
{
|
||||||
Preconditions.checkNotNull( score, "score" );
|
Preconditions.checkNotNull( score, "score" );
|
||||||
Preconditions.checkArgument( !scores.containsKey( score.getItemName() ), "Score %s already exists in this scoreboard", score.getItemName() );
|
|
||||||
scores.put( score.getItemName(), score );
|
scores.put( score.getItemName(), score );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user