From 250c00b3340744a079a6a69fea6e3de5194c3138 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 2 Apr 2023 18:46:42 +0200 Subject: Added a check to prevent visitors from being incorrectly marked as rejected. --- .../java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/at/hannibal2/skyhanni') 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 { -- cgit