diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-25 13:52:03 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-25 13:52:03 +0100 |
commit | dfdf589f0617b08828ac93d751450f701460c597 (patch) | |
tree | 5037a025b82a51dc21ff6ecdbd38363f535f9423 /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 3f25c2c3dbd31adfe9a2b1b5dd2a996b05528d19 (diff) | |
download | skyhanni-dfdf589f0617b08828ac93d751450f701460c597.tar.gz skyhanni-dfdf589f0617b08828ac93d751450f701460c597.tar.bz2 skyhanni-dfdf589f0617b08828ac93d751450f701460c597.zip |
Added option to exclude hidden items in the total price calculation.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt index b20515cd4..f5510b13d 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt @@ -112,7 +112,9 @@ class SkyHanniItemTracker<Data : ItemTrackerData>( if (isInventoryOpen() || !hidden) { items[renderable] = price } - profit += price + if (!hidden || !config.excludeHiddenItemsInPrice) { + profit += price + } } for (text in items.sortedDesc().keys) { |