From c5affe08dafdd45c38ae4b8dcdc1087a624e1b38 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 19 Mar 2023 15:06:10 +0100 Subject: Added item scaling to farming contest timer --- .../skyhanni/features/garden/GardenNextJacobContest.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden') 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, ): MutableList { - 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 -- cgit