aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-02 18:46:42 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-02 18:46:42 +0200
commit250c00b3340744a079a6a69fea6e3de5194c3138 (patch)
tree87a66ba59ae05207ebc74509d2ba13e715357e0f /src/main/java/at/hannibal2/skyhanni
parent7fa0477002d96ebbde5a903790c8847f654198f4 (diff)
downloadskyhanni-250c00b3340744a079a6a69fea6e3de5194c3138.tar.gz
skyhanni-250c00b3340744a079a6a69fea6e3de5194c3138.tar.bz2
skyhanni-250c00b3340744a079a6a69fea6e3de5194c3138.zip
Added a check to prevent visitors from being incorrectly marked as rejected.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
index 41f8a0ba2..0581c167c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
@@ -180,6 +180,7 @@ class GardenVisitorFeatures {
@SubscribeEvent(priority = EventPriority.HIGH)
fun onStackClick(event: SlotClickEvent) {
if (!inVisitorInventory) return
+ if (event.slot.stack?.name != "§cRefuse Offer") return
if (event.slotId != 33) return
getVisitor(lastClickedNpc)?.let {