aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/nether
diff options
context:
space:
mode:
authorLuna <me@lunya.dev>2024-10-05 00:08:45 +0200
committerGitHub <noreply@github.com>2024-10-05 08:08:45 +1000
commitfda50f2ecd79498b8cb155025807d018cf86279e (patch)
tree52e79cb7ea061eee14a9682fa49b09aab9efe66f /src/main/java/at/hannibal2/skyhanni/features/nether
parenta95bf3a5712951eff5d4d52f418468e901e1eda6 (diff)
downloadskyhanni-fda50f2ecd79498b8cb155025807d018cf86279e.tar.gz
skyhanni-fda50f2ecd79498b8cb155025807d018cf86279e.tar.bz2
skyhanni-fda50f2ecd79498b8cb155025807d018cf86279e.zip
Fix: Delay Pablo GfS message (#2662)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/nether')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/PabloHelper.kt11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/PabloHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/PabloHelper.kt
index 04f5e6113..eb4962549 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/PabloHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/PabloHelper.kt
@@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.api.GetFromSackAPI
import at.hannibal2.skyhanni.events.LorenzChatEvent
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
+import at.hannibal2.skyhanni.utils.DelayedRun
import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils.name
import at.hannibal2.skyhanni.utils.LorenzUtils
@@ -51,10 +52,12 @@ object PabloHelper {
if (InventoryUtils.countItemsInLowerInventory { it.name.contains(itemName) } > 0) return
- GetFromSackAPI.getFromChatMessageSackItems(
- itemName.asInternalName().makePrimitiveStack(),
- "Click here to grab an $itemName from sacks!",
- )
+ DelayedRun.runNextTick {
+ GetFromSackAPI.getFromChatMessageSackItems(
+ itemName.asInternalName().makePrimitiveStack(),
+ "Click here to grab an $itemName from sacks!",
+ )
+ }
lastSentMessage = SimpleTimeMark.now()
}