geforkt von Mirrors/Paper
Don't throw when removing unplaced player in NearbyPlayers
Dieser Commit ist enthalten in:
Ursprung
933793244c
Commit
696a5041a0
@ -5534,7 +5534,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ public void removePlayer(final ServerPlayer player) {
|
||||
+ final TrackedPlayer[] players = this.players.remove(player);
|
||||
+ if (players == null) {
|
||||
+ throw new IllegalStateException("Don't have player " + player);
|
||||
+ return; // May be called during teleportation before the player is actually placed
|
||||
+ }
|
||||
+
|
||||
+ for (final TrackedPlayer tracker : players) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren