diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-03-24 12:30:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-24 12:30:05 +0100 |
commit | 4300af278a7a6f5124c9164998d132774a9f0a9c (patch) | |
tree | 5103e54d15f414e1395cbe5219cdd2362abba7e8 /src/main/java | |
parent | 08cbe334d56ee3fd47ffe7b2dbccd9a3208819b2 (diff) | |
download | skyhanni-4300af278a7a6f5124c9164998d132774a9f0a9c.tar.gz skyhanni-4300af278a7a6f5124c9164998d132774a9f0a9c.tar.bz2 skyhanni-4300af278a7a6f5124c9164998d132774a9f0a9c.zip |
Fix: Composter Upgrades not loaded (#1256)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt | 7 |
1 files changed, 7 insertions, 0 deletions
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( |