From a4fe926ce0765fdb5c776f8b8501c5d5c38e1f76 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sat, 20 Jan 2024 20:13:37 +1100 Subject: update powder message (#940) Fixed detection of gold and diamond essence gain chat message when powder mining. #940 --- src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt | 2 +- .../skyhanni/features/mining/powdertracker/PowderChestReward.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java') 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 54fb67c0c..416f49842 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt @@ -298,7 +298,7 @@ class ChatFilter { // Useful, maybe in another chat "§aYou received §r§b\\+\\d{1,3} §r§a(Mithril|Gemstone) Powder.".toPattern(), - "§aYou received §r(§6|§b)\\+[1-2] (Diamond|Gold) Essence".toPattern(), + "§aYou received §r(§6|§b)\\+[1-2] (Diamond|Gold) Essence§r§a.".toPattern(), ) private val fireSalePatterns = listOf( "§c♨ §eFire Sales for .* §eare starting soon!".toPattern(), diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderChestReward.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderChestReward.kt index 8ae17eaf6..3df832563 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderChestReward.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderChestReward.kt @@ -145,8 +145,8 @@ enum class PowderChestReward(val displayName: String, pattern: String) { PREHISTORIC_EGG("§fPrehistoric Egg", "§aYou received §r§f(?.*) §r§fPrehistoric Egg§r§a."), OIL_BARREL("§aOil Barrel", "§aYou received §r§f(?.*) §r§aOil Barrel§r§a."), - DIAMOND_ESSENCE("§bDiamond Essence", "§aYou received §r§b[+](?.*) Diamond Essence"), - GOLD_ESSENCE("§6Gold Essence", "§aYou received §r§6[+](?.*) Gold Essence"), + DIAMOND_ESSENCE("§bDiamond Essence", "§aYou received §r§b[+](?.*) Diamond Essence§r§a."), + GOLD_ESSENCE("§6Gold Essence", "§aYou received §r§6[+](?.*) Gold Essence§r§a."), ; val chatPattern by RepoPattern.pattern("mining.powder.tracker.reward." + this.patternName(), pattern) -- cgit