Skip to content

Commit 640efee

Browse files
committed
Make CraftWorld#isChunkGenerated use BLOCKING priority
We should be using BLOCKING since we are blocking on the load...
1 parent b23b725 commit 640efee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public boolean isChunkGenerated(int x, int z) {
415415
}
416416
final java.util.concurrent.CompletableFuture<ChunkAccess> future = new java.util.concurrent.CompletableFuture<>();
417417
ca.spottedleaf.moonrise.common.PlatformHooks.get().scheduleChunkLoad(
418-
this.world, x, z, false, ChunkStatus.EMPTY, true, ca.spottedleaf.concurrentutil.util.Priority.NORMAL, future::complete
418+
this.world, x, z, false, ChunkStatus.EMPTY, true, ca.spottedleaf.concurrentutil.util.Priority.BLOCKING, future::complete
419419
);
420420
world.getChunkSource().mainThreadProcessor.managedBlock(future::isDone);
421421
return future.thenApply(c -> {

0 commit comments

Comments
 (0)