aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-12 21:55:50 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-12 21:55:50 +0100
commitf29f71cd02da50d510a8be57f5388e1a4522dbe0 (patch)
treec21fa85c4ed667d9ff87c585bf3fa07dad5b1079 /src/main/java/at/hannibal2/skyhanni/data
parent3174b0cf96a4bb4f31c8c94a6d604e580639a3e3 (diff)
downloadskyhanni-f29f71cd02da50d510a8be57f5388e1a4522dbe0.tar.gz
skyhanni-f29f71cd02da50d510a8be57f5388e1a4522dbe0.tar.bz2
skyhanni-f29f71cd02da50d510a8be57f5388e1a4522dbe0.zip
Added support for soopy's [hand] feature
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/ChatManager.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/ChatManager.kt b/src/main/java/at/hannibal2/skyhanni/data/ChatManager.kt
index 95572c213..b55840b39 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/ChatManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/ChatManager.kt
@@ -43,7 +43,9 @@ class ChatManager {
if (message.startsWith("§f{\"server\":\"")) return
val chatEvent = LorenzChatEvent(message, original)
- chatEvent.postAndCatch()
+ if (!event.message.toString().contains("(held item preview from soopy using [hand])")) {
+ chatEvent.postAndCatch()
+ }
val blockReason = chatEvent.blockedReason.uppercase()
if (blockReason != "") {