aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/garden
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt
index 6bbe18953..280e4c462 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt
@@ -46,17 +46,22 @@ class GardenBestCropTime {
number++
if (number > config.cropMilestoneShowOnlyBest && !isCurrent) continue
+ val list = mutableListOf<Any>()
+ list.add("§7$number# ")
+ GardenAPI.addGardenCropToList(cropName, list)
+
val color = if (isCurrent) "§e" else ""
val contestFormat = if (GardenNextJacobContest.isNextCrop(cropName)) "§n" else ""
- val cropNameDisplay = "§7$number# $color$contestFormat$cropName§r"
+ val cropNameDisplay = "$color$contestFormat$cropName§r"
+ list.add("$cropNameDisplay §b$duration")
+
if (gardenExp) {
val crops = GardenCropMilestones.cropCounter[cropName]!!
val currentTier = GardenCropMilestones.getTierForCrops(crops)
val gardenExpForTier = getGardenExpForTier(currentTier + 1)
- display.add(Collections.singletonList("$cropNameDisplay §b$duration §7(§2$gardenExpForTier §7Exp)"))
- } else {
- display.add(Collections.singletonList("$cropNameDisplay §b$duration"))
+ list.add(" §7(§2$gardenExpForTier §7Exp)")
}
+ display.add(list)
}
}