From dfdf589f0617b08828ac93d751450f701460c597 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 25 Nov 2023 13:52:03 +0100 Subject: Added option to exclude hidden items in the total price calculation. --- .../java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/utils/tracker') 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( if (isInventoryOpen() || !hidden) { items[renderable] = price } - profit += price + if (!hidden || !config.excludeHiddenItemsInPrice) { + profit += price + } } for (text in items.sortedDesc().keys) { -- cgit