From 696a5041a04bb3a416dad6130b2e82b9b8a4f9db Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sat, 30 Sep 2023 15:37:00 +1000 Subject: [PATCH] Don't throw when removing unplaced player in NearbyPlayers --- patches/server/MC-Utils.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/MC-Utils.patch b/patches/server/MC-Utils.patch index c03c2b18a8..e3351adb21 100644 --- a/patches/server/MC-Utils.patch +++ b/patches/server/MC-Utils.patch @@ -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) {