From 4300af278a7a6f5124c9164998d132774a9f0a9c Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Sun, 24 Mar 2024 12:30:05 +0100 Subject: Fix: Composter Upgrades not loaded (#1256) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/features/garden/composter/ComposterOverlay.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt index 4173e7e0d..171aa503d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt @@ -162,6 +162,13 @@ object ComposterOverlay { } private fun update() { + val composterUpgrades = ComposterAPI.composterUpgrades ?: return + if (composterUpgrades.isEmpty()) { + val list = Collections.singletonList(listOf("§cOpen Composter Upgrades!")) + organicMatterDisplay = list + fuelExtraDisplay = list + return + } if (organicMatterFactors.isEmpty()) { organicMatterDisplay = Collections.singletonList( -- cgit