From 7d86e02543d5cc73b23179d36f723a166564ffa6 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 23 Jan 2024 16:40:33 +0100 Subject: code cleanup --- .../skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/main') 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(?.*) Copper".toPattern() private val gardenExperiencePattern = " §8\\+§2(?.*) §7Garden Experience".toPattern() private val visitorChatMessagePattern = "§e\\[NPC] (§.)?(?.*)§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!") + } } } -- cgit