SPIGOT-6980: Since 1.18.2, World#isChunkLoaded returned false for chunks that have just been loaded (e.g. inside ChunkLoadEvent).

Some changes of the 1.18.2 update have been reverted to resolve this regression.

By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
CraftBukkit/Spigot
2022-03-27 16:24:06 +11:00
parent fa672ce555
commit 475d10469d
3 changed files with 29 additions and 8 deletions

View File

@@ -10,7 +10,7 @@
+ if (chunk == null) {
+ return false;
+ }
+ return chunk.getFullChunk() != null;
+ return chunk.getFullChunkNow() != null;
+ }
+
+ public Chunk getChunkUnchecked(int chunkX, int chunkZ) {
@@ -18,7 +18,7 @@
+ if (chunk == null) {
+ return null;
+ }
+ return chunk.getFullChunk();
+ return chunk.getFullChunkNowUnchecked();
+ }
+ // CraftBukkit end
+