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:
Ursprung
eb317edc8a
Commit
3fe23c1679
@ -2471,7 +2471,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ final PlayerChunkLoaderData loader = player.chunkLoader;
|
+ final PlayerChunkLoaderData loader = player.chunkLoader;
|
||||||
+
|
+
|
||||||
+ if (loader == null) {
|
+ if (loader == null) {
|
||||||
+ throw new IllegalStateException("Player is already removed from player chunk loader");
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ loader.remove();
|
+ loader.remove();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren