mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-30 04:01:55 +01:00
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:
parent
eb317edc8a
commit
3fe23c1679
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user