From 15c0e90d6ecc2c5aed62f89947595c979bb5c9a3 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:04:13 -0700 Subject: [PATCH] Execute chunk tasks while waiting for chunk load in isChunkGenerated this shouldn't be needed as we are requesting EMPTY status, however there is a deeper issue that we will just work around for now fixes #10916 --- patches/server/Fix-CraftWorld-isChunkGenerated.patch | 1 + 1 file changed, 1 insertion(+) diff --git a/patches/server/Fix-CraftWorld-isChunkGenerated.patch b/patches/server/Fix-CraftWorld-isChunkGenerated.patch index 4afee8c4c..7027a3f88 100644 --- a/patches/server/Fix-CraftWorld-isChunkGenerated.patch +++ b/patches/server/Fix-CraftWorld-isChunkGenerated.patch @@ -31,6 +31,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + ca.spottedleaf.moonrise.patches.chunk_system.ChunkSystem.scheduleChunkLoad( + this.world, x, z, false, ChunkStatus.EMPTY, false, ca.spottedleaf.concurrentutil.executor.standard.PrioritisedExecutor.Priority.NORMAL, future::complete + ); ++ world.getChunkSource().mainThreadProcessor.managedBlock(future::isDone); + return future.thenApply(c -> { + if (c != null) { + return c.getPersistedStatus() == ChunkStatus.FULL;