diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-23 16:40:33 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-23 16:40:33 +0100 |
commit | 7d86e02543d5cc73b23179d36f723a166564ffa6 (patch) | |
tree | d93572b60d8154a1fd81555c5883aee59b6f96fb /src/main/java/at/hannibal2/skyhanni | |
parent | d025d93bb69c7aa43dfe1ab8b2a2e11e331b4df7 (diff) | |
download | skyhanni-7d86e02543d5cc73b23179d36f723a166564ffa6.tar.gz skyhanni-7d86e02543d5cc73b23179d36f723a166564ffa6.tar.bz2 skyhanni-7d86e02543d5cc73b23179d36f723a166564ffa6.zip |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt index 273ae48ae..1a958a7ae 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt @@ -75,7 +75,10 @@ class GardenVisitorFeatures { private val copperPattern = " §8\\+§c(?<amount>.*) Copper".toPattern() private val gardenExperiencePattern = " §8\\+§2(?<amount>.*) §7Garden Experience".toPattern() private val visitorChatMessagePattern = "§e\\[NPC] (§.)?(?<name>.*)§f: §r.*".toPattern() - private val partialAcceptedPattern by RepoPattern.pattern("garden.visitor.partialaccepted", "§aYou gave some of the required items!") + private val partialAcceptedPattern by RepoPattern.pattern( + "garden.visitor.partialaccepted", + "§aYou gave some of the required items!" + ) private val logger = LorenzLogger("garden/visitors") private var lastFullPrice = 0.0 @@ -460,8 +463,10 @@ class GardenVisitorFeatures { event.blockedReason = "garden_visitor_message" } - partialAcceptedPattern.matchMatcher(event.message) { - if (config.shoppingList.display) LorenzUtils.chat("Talk to the visitor again to update the number of items needed!") + if (config.shoppingList.display) { + partialAcceptedPattern.matchMatcher(event.message) { + LorenzUtils.chat("Talk to the visitor again to update the number of items needed!") + } } } |