aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorObsidian <108832807+Obsidianninja11@users.noreply.github.com>2024-04-30 02:33:44 -0800
committerGitHub <noreply@github.com>2024-04-30 12:33:44 +0200
commit7558c19e799f0ccb4efd12652dfa45020f00bc55 (patch)
treef8017ca0d863b5a5d432fd6964d63995ddddfb58 /src/main/java/at/hannibal2/skyhanni/features
parent5ec11173f2124e5069d93c16e5ae9b25658c31e9 (diff)
downloadskyhanni-7558c19e799f0ccb4efd12652dfa45020f00bc55.tar.gz
skyhanni-7558c19e799f0ccb4efd12652dfa45020f00bc55.tar.bz2
skyhanni-7558c19e799f0ccb4efd12652dfa45020f00bc55.zip
Fix: VisitorRewardWarning only blocking normal clicks (#1595)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt
index ba56595bd..c66faf0f4 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt
@@ -52,7 +52,6 @@ class VisitorRewardWarning {
fun onStackClick(event: GuiContainerEvent.SlotClickEvent) {
if (!VisitorAPI.inInventory) return
val stack = event.slot?.stack ?: return
- if (event.clickType != 0) return
val visitor = VisitorAPI.getVisitor(lastClickedNpc) ?: return
val blockReason = visitor.blockReason
@@ -66,6 +65,8 @@ class VisitorRewardWarning {
return
}
+ // clicktypes 0, 2, 3, and 4 work for interacting with visitor, but not 1
+ if (event.clickTypeEnum == GuiContainerEvent.ClickType.NORMAL) return
if (isRefuseSlot) {
VisitorAPI.changeStatus(visitor, VisitorAPI.VisitorStatus.REFUSED, "refused")
return