aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-18 18:14:46 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-18 18:14:46 +0200
commita06d89cdba845ee7f5f8418ad3502f5d9edc3cfc (patch)
treef4d749c521c71636a916efa276ee9168885097e4 /src/main
parent1c0be4c5416bbcb178cbbb8974f522b4705a9168 (diff)
downloadskyhanni-a06d89cdba845ee7f5f8418ad3502f5d9edc3cfc.tar.gz
skyhanni-a06d89cdba845ee7f5f8418ad3502f5d9edc3cfc.tar.bz2
skyhanni-a06d89cdba845ee7f5f8418ad3502f5d9edc3cfc.zip
In the composter overlay, the "material costs" were displayed incorrectly and thus somewhat higher than they really are
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt4
1 files 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 ""