aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSpottedleaf <[email protected]>2023-06-10 08:27:23 -0700
committerSpottedleaf <[email protected]>2023-06-10 08:27:23 -0700
commit3d06377b24681c64301bffc3f81816166c6a8688 (patch)
tree40eb3ccb232e3d209d90e249a7da59ab298cf32a
parent2ffb704efaf9811b9da286011e9c4b8f682620a9 (diff)
downloadPaper-3d06377b24681c64301bffc3f81816166c6a8688.tar.gz
Paper-3d06377b24681c64301bffc3f81816166c6a8688.zip
Allow double removal from player chunk loader
Unlike Folia, players may be incorrectly be double-removed Fixes https://github.com/PaperMC/Paper/issues/9299
-rw-r--r--patches/server/0019-Rewrite-chunk-system.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0019-Rewrite-chunk-system.patch b/patches/server/0019-Rewrite-chunk-system.patch
index 74ade37843..59092bf1f4 100644
--- a/patches/server/0019-Rewrite-chunk-system.patch
+++ b/patches/server/0019-Rewrite-chunk-system.patch
@@ -2310,7 +2310,7 @@ index 95eac2e12a16938d81ab512b00e90c5234b42834..8f7bf1f0400aeab8b7801d113d244d07
private ChunkSystem() {
diff --git a/src/main/java/io/papermc/paper/chunk/system/RegionizedPlayerChunkLoader.java b/src/main/java/io/papermc/paper/chunk/system/RegionizedPlayerChunkLoader.java
new file mode 100644
-index 0000000000000000000000000000000000000000..a642b02694eb50e21dee1c3dc0bc397c1712c71e
+index 0000000000000000000000000000000000000000..a495d692841c1a6056ca82519ee9b9c66f1ff5cd
--- /dev/null
+++ b/src/main/java/io/papermc/paper/chunk/system/RegionizedPlayerChunkLoader.java
@@ -0,0 +1,1418 @@
@@ -2471,7 +2471,7 @@ index 0000000000000000000000000000000000000000..a642b02694eb50e21dee1c3dc0bc397c
+ final PlayerChunkLoaderData loader = player.chunkLoader;
+
+ if (loader == null) {
-+ throw new IllegalStateException("Player is already removed from player chunk loader");
++ return;
+ }
+
+ loader.remove();