From c9cf7ddbf3190d65fa23ce90d1976c43c9a3d83d Mon Sep 17 00:00:00 2001 From: HaHaWTH <102713261+HaHaWTH@users.noreply.github.com> Date: Tue, 14 Jan 2025 05:27:22 -0800 Subject: [PATCH] O0oOoo0 --- .../wdsj/asw/bukkit/listener/paper/PaperChunkLoadListener.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/kotlin/io/wdsj/asw/bukkit/listener/paper/PaperChunkLoadListener.kt b/bukkit/src/main/kotlin/io/wdsj/asw/bukkit/listener/paper/PaperChunkLoadListener.kt index e677c2e..5608e83 100644 --- a/bukkit/src/main/kotlin/io/wdsj/asw/bukkit/listener/paper/PaperChunkLoadListener.kt +++ b/bukkit/src/main/kotlin/io/wdsj/asw/bukkit/listener/paper/PaperChunkLoadListener.kt @@ -21,7 +21,7 @@ class PaperChunkLoadListener : Listener { val potentialSignPositions = ArrayList>() val minY = event.chunk.world.minHeight val maxY = event.chunk.world.maxHeight - CompletableFuture.runAsync({ + CompletableFuture.supplyAsync({ for (x in 0 until 16) { for (z in 0 until 16) { for (y in minY until maxY) { @@ -33,7 +33,6 @@ class PaperChunkLoadListener : Listener { } } } - }, Utils.commonWorker) .thenRun { if (potentialSignPositions.isNotEmpty()) { @@ -42,7 +41,9 @@ class PaperChunkLoadListener : Listener { LOGGER.warning("Signs found at: $potentialSignPositions") for (triple in potentialSignPositions) { val block = event.chunk.getBlock(triple.first, triple.second, triple.third) + LOGGER.info("Sign at (${triple.first}, ${triple.second}, ${triple.third}), ${block.state}") val state = block.state + LOGGER.info(state.toString()) if (state is Sign) { val lines = state.getSide(Side.FRONT)