Allow double removal from player chunk loader

Unlike Folia, players may be incorrectly be double-removed

Fixes https://github.com/PaperMC/Paper/issues/9299
This commit is contained in:
Spottedleaf 2023-06-10 08:27:23 -07:00
parent eb317edc8a
commit 3fe23c1679

View File

@ -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();