mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
Remove connected check on setScoreboard
No other API uses such a check and it has been removed in Spigot since f7086eb96d
in 2013.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
fe17e5f886
commit
3d36db0106
1 changed files with 0 additions and 1 deletions
|
@ -1917,7 +1917,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||
public void setScoreboard(Scoreboard scoreboard) {
|
||||
Preconditions.checkArgument(scoreboard != null, "Scoreboard cannot be null");
|
||||
Preconditions.checkState(getHandle().connection != null, "Cannot set scoreboard yet (invalid player connection)");
|
||||
Preconditions.checkState(!getHandle().connection.isDisconnected(), "Cannot set scoreboard for invalid CraftPlayer (player is disconnected)");
|
||||
|
||||
this.server.getScoreboardManager().setPlayerBoard(this, scoreboard);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue