aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiZe_ <superhize@hotmail.com>2023-10-26 00:40:22 +0200
committerGitHub <noreply@github.com>2023-10-26 00:40:22 +0200
commitff6477b9443cb5a9f247a5f1d10734180e9d26d7 (patch)
treee330924bb861cbe06cddde4cd745df558ee1945f
parentdc0ea5984697dc5f81011eb584fafd717d070070 (diff)
downloadskyhanni-ff6477b9443cb5a9f247a5f1d10734180e9d26d7.tar.gz
skyhanni-ff6477b9443cb5a9f247a5f1d10734180e9d26d7.tar.bz2
skyhanni-ff6477b9443cb5a9f247a5f1d10734180e9d26d7.zip
Added Diamond/Gold essence to chat filter (#620)
Added Diamond/Gold essence to chat filter powder mining. #620
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/ChatConfig.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/ChatConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/ChatConfig.java
index 8168f98d0..60e7445d7 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/ChatConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/ChatConfig.java
@@ -66,7 +66,7 @@ public class ChatConfig {
@Expose
@ConfigOption(name = "Powder Mining", desc = "Hide messages while opening chests in the Crystal Hollows. " +
- "(Except powder numbers over 1k, Prehistoric Egg and Automaton Parts)")
+ "(Except powder numbers over 1k, essence numbers over 2, Prehistoric Eggs, and Automaton Parts)")
@ConfigEditorBoolean
@FeatureToggle
public boolean powderMining = true;
diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt
index 6772e67cf..cf12867f4 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt
@@ -347,6 +347,8 @@ class ChatFilter {
message.matchRegex("§aYou received §r§b\\+\\d{1,3} §r§a(Mithril|Gemstone) Powder.") -> true
message == "§6You have successfully picked the lock on this chest!" -> true
+ message.matchRegex("§aYou received §r(§6|§b)\\+[1-2] (Diamond|Gold) Essence") -> true
+
else -> false
}