From a06d89cdba845ee7f5f8418ad3502f5d9edc3cfc Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 18 Apr 2023 18:14:46 +0200 Subject: In the composter overlay, the "material costs" were displayed incorrectly and thus somewhat higher than they really are --- .../hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 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 8aaa9747a..0e0271b52 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 @@ -309,8 +309,8 @@ class ComposterOverlay { val fuelPricePer = fuelPrice * (fuelRequired / fuelFactor) val fuelPricePerPreview = fuelPrice * (fuelRequiredPreview / fuelFactor) - val totalCost = (fuelPricePer + organicMatterPricePer) * multiplier - val totalCostPreview = (fuelPricePerPreview + organicMatterPricePerPreview) * multiplierPreview + val totalCost = (fuelPricePer + organicMatterPricePer) * timeMultiplier + val totalCostPreview = (fuelPricePerPreview + organicMatterPricePerPreview) * timeMultiplierPreview val materialCostFormatPreview = if (totalCost != totalCostPreview) " §c➜ §6" + NumberUtil.format(totalCostPreview) else "" -- cgit