diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-02 12:35:37 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-02 12:35:37 +0200 |
commit | 28d51c01b37418ffc9c9f6046d82b528b137a649 (patch) | |
tree | 7d7655f8de462c818a127daf529e138f60b1b29d /src | |
parent | 63a636cabb1dc64baa5c1970269ceb0db1088e9e (diff) | |
download | skyhanni-28d51c01b37418ffc9c9f6046d82b528b137a649.tar.gz skyhanni-28d51c01b37418ffc9c9f6046d82b528b137a649.tar.bz2 skyhanni-28d51c01b37418ffc9c9f6046d82b528b137a649.zip |
code cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt | 4 |
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 67a288e66..e86d4124a 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 @@ -350,8 +350,8 @@ class ComposterOverlay { val priceCompost = getPrice("COMPOST") - val profit = ((priceCompost * multiDropFactor) - (fuelPricePer + organicMatterPricePer))*timeMultiplier - val profitPreview = ((priceCompost * multiDropFactorPreview) - (fuelPricePerPreview + organicMatterPricePerPreview))*timeMultiplierPreview + val profit = ((priceCompost * multiDropFactor) - (fuelPricePer + organicMatterPricePer)) * timeMultiplier + val profitPreview = ((priceCompost * multiDropFactorPreview) - (fuelPricePerPreview + organicMatterPricePerPreview)) * timeMultiplierPreview val profitFormatPreview = if (profit != profitPreview) " §c➜ §6" + NumberUtil.format(profitPreview) else "" val profitFormat = " §7Profit per $timeText: §6${NumberUtil.format(profit)}$profitFormatPreview" |