diff options
author | Luna <me@lunya.dev> | 2024-10-05 00:08:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-05 08:08:45 +1000 |
commit | fda50f2ecd79498b8cb155025807d018cf86279e (patch) | |
tree | 52e79cb7ea061eee14a9682fa49b09aab9efe66f /src/main | |
parent | a95bf3a5712951eff5d4d52f418468e901e1eda6 (diff) | |
download | skyhanni-fda50f2ecd79498b8cb155025807d018cf86279e.tar.gz skyhanni-fda50f2ecd79498b8cb155025807d018cf86279e.tar.bz2 skyhanni-fda50f2ecd79498b8cb155025807d018cf86279e.zip |
Fix: Delay Pablo GfS message (#2662)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/nether/PabloHelper.kt | 11 |
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() } |