fix: Remove chunk#isLoaded call in BukkitChunkCoordinator

- Fixes #3878
 - Possibly addresses #3849?
This commit is contained in:
dordsor21 2023-01-15 17:39:59 +00:00
parent abbac057ed
commit d0354c39f7
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -239,9 +239,11 @@ public final class BukkitChunkCoordinator extends ChunkCoordinator {
* server's main thread. * server's main thread.
*/ */
private void processChunk(final @NonNull Chunk chunk) { private void processChunk(final @NonNull Chunk chunk) {
/* Chunk#isLoaded does not necessarily return true shortly after PaperLib#getChunkAtAsync completes, but the chunk is
still loaded.
if (!chunk.isLoaded()) { if (!chunk.isLoaded()) {
throw new IllegalArgumentException(String.format("Chunk %d;%d is is not loaded", chunk.getX(), chunk.getZ())); throw new IllegalArgumentException(String.format("Chunk %d;%d is is not loaded", chunk.getX(), chunk.getZ());
} }*/
if (finished) { if (finished) {
return; return;
} }