aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt9
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt4
2 files changed, 3 insertions, 10 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt
index b3f20e353..bfc20a7cd 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt
@@ -100,14 +100,7 @@ class CropMoneyDisplay {
}
var number = 0
-
-
-// val help = moneyPerHourData.map { it.key to it.value.max() }
- val help = mutableMapOf<String, Double>()
- for ((name, array) in moneyPerHourData) {
- help[name] = array.max()
- }
-
+ val help = moneyPerHourData.mapValues { (_, value) -> value.max() }
for (internalName in help.sortedDesc().keys) {
number++
val cropName = cropNames[internalName]!!
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
index 8de0536f9..df71986ed 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
@@ -353,7 +353,7 @@ class GardenVisitorFeatures {
for (name in visitorsInTab) {
if (!visitors.containsKey(name)) {
visitors[name] = Visitor(name, status = VisitorStatus.NEW)
- println("new visitor '$name'")
+ LorenzUtils.debug("new visitor '$name'")
if (config.visitorNotificationTitle) {
SendTitleHelper.sendTitle("§eNew Visitor", 5_000)
}
@@ -429,7 +429,7 @@ class GardenVisitorFeatures {
val old = oldValue[visitor]
val new = visitor.status
if (old == new) return
- val name = visitor.visitorName
+ val name = visitor.visitorName.removeColor()
LorenzUtils.debug("Visitor status change for $name: $old -> $new")
}