From 7b6aac3ea8b7aebaef104097b0ac7767b27f4c80 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 8 Aug 2023 02:25:22 +0200 Subject: code cleanup utils --- src/main/java/at/hannibal2/skyhanni/utils/MinecraftDispatcher.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/at/hannibal2/skyhanni/utils/MinecraftDispatcher.kt') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/MinecraftDispatcher.kt b/src/main/java/at/hannibal2/skyhanni/utils/MinecraftDispatcher.kt index 2ccbf30de..8771de215 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/MinecraftDispatcher.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/MinecraftDispatcher.kt @@ -11,6 +11,7 @@ object MinecraftDispatcher : MainCoroutineDispatcher() { override fun isDispatchNeeded(context: CoroutineContext): Boolean { return !Minecraft.getMinecraft().isCallingFromMinecraftThread } + override fun dispatch(context: CoroutineContext, block: Runnable) { Minecraft.getMinecraft().addScheduledTask(block) } -- cgit