diff options
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt | 19 |
1 files changed, 18 insertions, 1 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 0cd611e2d..018ffe73b 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 @@ -142,9 +142,26 @@ class ComposterOverlay { private fun update() { if (organicMatterFactors.isEmpty()) { organicMatterDisplay = - Collections.singletonList(listOf("§cSkyHanni composter error:", "§cRepo data not loaded!")) + Collections.singletonList( + listOf( + "§cSkyHanni composter error:", "§cRepo data not loaded!", + "§7(organicMatterFactors is empty)" + ) + ) return } + if (fuelFactors.isEmpty()) { + organicMatterDisplay = + Collections.singletonList( + listOf( + "§cSkyHanni composter error:", "§cRepo data not loaded!", + "§7(fuelFactors is empty)" + ) + ) + return + } + if (currentOrganicMatterItem.let { it !in organicMatterFactors && it != "" }) currentOrganicMatterItem = "" + if (currentFuelItem.let { it !in organicMatterFactors && it != "" }) currentFuelItem = "" if (inComposter) { organicMatterDisplay = drawOrganicMatterDisplay() |