aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-09-17 08:53:33 +0200
committerGitHub <noreply@github.com>2024-09-17 08:53:33 +0200
commit2e959c27fa0e0ec75bf26456df9ba80d2a8e5e5b (patch)
treeeea1de320880ebd1b9d27dcd41f7ed4a84012ea6 /src/main/java/at/hannibal2/skyhanni/features/misc
parent0a49e3eb55f8804d6716fa8dd1239c502682726f (diff)
downloadskyhanni-2e959c27fa0e0ec75bf26456df9ba80d2a8e5e5b.tar.gz
skyhanni-2e959c27fa0e0ec75bf26456df9ba80d2a8e5e5b.tar.bz2
skyhanni-2e959c27fa0e0ec75bf26456df9ba80d2a8e5e5b.zip
Fix: Lag spikes in pathfinder (#2525)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/IslandAreas.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/IslandAreas.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/IslandAreas.kt
index c5c0071f9..d85b34cc6 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/IslandAreas.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/IslandAreas.kt
@@ -30,6 +30,7 @@ import at.hannibal2.skyhanni.utils.renderables.Renderable
import at.hannibal2.skyhanni.utils.renderables.Searchable
import at.hannibal2.skyhanni.utils.renderables.buildSearchBox
import at.hannibal2.skyhanni.utils.renderables.toSearchable
+import kotlinx.coroutines.launch
import net.minecraft.client.Minecraft
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import kotlin.time.Duration.Companion.seconds
@@ -54,7 +55,9 @@ object IslandAreas {
}
fun noteMoved() {
- updateNodes()
+ SkyHanniMod.coroutineScope.launch {
+ updateNodes()
+ }
}
private fun updateNodes() {