Skip to content

Commit

Permalink
Fix: Delay Pablo GfS message (#2662)
Browse files Browse the repository at this point in the history
  • Loading branch information
qtlunya authored Oct 4, 2024
1 parent a95bf3a commit fda50f2
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit fda50f2

Please sign in to comment.