13
0
geforkt von Mirrors/Paper

Allow double removal from player chunk loader

Unlike Folia, players may be incorrectly be double-removed

Fixes https://github.com/PaperMC/Paper/issues/9299
Dieser Commit ist enthalten in:
Spottedleaf 2023-06-10 08:27:23 -07:00
Ursprung eb317edc8a
Commit 3fe23c1679

Datei anzeigen

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