diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-19 15:06:10 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-19 15:06:10 +0100 |
commit | c5affe08dafdd45c38ae4b8dcdc1087a624e1b38 (patch) | |
tree | 0b96059daee7a96c3fd4f7df515f4f489efb245f /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | 1eb058d6800f9e01ac7c7696254ef955e60c80c4 (diff) | |
download | skyhanni-c5affe08dafdd45c38ae4b8dcdc1087a624e1b38.tar.gz skyhanni-c5affe08dafdd45c38ae4b8dcdc1087a624e1b38.tar.bz2 skyhanni-c5affe08dafdd45c38ae4b8dcdc1087a624e1b38.zip |
Added item scaling to farming contest timer
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt index b2edd442d..dbf5ff5c8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt @@ -161,19 +161,19 @@ class GardenNextJacobContest { nextContest: FarmingContest, list: MutableList<Any>, ): MutableList<Any> { - for (crop in nextContest.crops) { - GardenAPI.addGardenCropToList(crop, list) - list.add(" ") - } var duration = nextContest.endTime - System.currentTimeMillis() if (duration < contestDuration) { - list.add("§aActive ") + list.add("§aActive: ") } else { - list.add("§eNext ") + list.add("§eNext: ") duration -= contestDuration } + for (crop in nextContest.crops) { + list.add(" ") + GardenAPI.addGardenCropToList(crop, list) + } val format = TimeUtils.formatDuration(duration) - list.add("§b$format ") + list.add("§7(§b$format§7)") return list } @@ -182,7 +182,7 @@ class GardenNextJacobContest { fun onRenderOverlay(event: GuiRenderEvent.GameOverlayRenderEvent) { if (!isEnabled()) return - config.nextJacobContestPos.renderSingleLineWithItems(display) + config.nextJacobContestPos.renderSingleLineWithItems(display, 1.7) } @SubscribeEvent |