From 3fe23c1679712d4527223de038ffc0cfaf71c6bd Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Sat, 10 Jun 2023 08:27:23 -0700 Subject: [PATCH] Allow double removal from player chunk loader Unlike Folia, players may be incorrectly be double-removed Fixes https://github.com/PaperMC/Paper/issues/9299 --- patches/server/Rewrite-chunk-system.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Rewrite-chunk-system.patch b/patches/server/Rewrite-chunk-system.patch index 981fcd3ef7..a97061137c 100644 --- a/patches/server/Rewrite-chunk-system.patch +++ b/patches/server/Rewrite-chunk-system.patch @@ -2471,7 +2471,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + final PlayerChunkLoaderData loader = player.chunkLoader; + + if (loader == null) { -+ throw new IllegalStateException("Player is already removed from player chunk loader"); ++ return; + } + + loader.remove();