diff options
Diffstat (limited to 'src/main')
-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!") + } } } |