aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-07 21:50:26 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-07 21:50:26 +0100
commitbc27a67c4495c8e4a37f559e1224ebfc0d649e80 (patch)
tree99af830b9b78bd9ce3b0f4332c0bf824390629dd /src/main/java/at/hannibal2/skyhanni/utils
parent5b7b2203c4ddeb1c9d40aff578cfab61df87d293 (diff)
downloadskyhanni-bc27a67c4495c8e4a37f559e1224ebfc0d649e80.tar.gz
skyhanni-bc27a67c4495c8e4a37f559e1224ebfc0d649e80.tar.bz2
skyhanni-bc27a67c4495c8e4a37f559e1224ebfc0d649e80.zip
Used SkyHanniTracker in SlayerItemProfitTracker
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt
index a63a47706..4d7b74243 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt
@@ -16,9 +16,10 @@ class SkyHanniTracker<Data : TrackerData>(
private val getStorage: (Storage.ProfileSpecific) -> Data,
private val update: () -> Unit,
) {
-
private var inventoryOpen = false
+ fun isInventoryOpen() = inventoryOpen
+
private fun getSharedTracker(): SharedTracker<Data>? {
val profileSpecific = ProfileStorageData.profileSpecific ?: return null
return SharedTracker(getStorage(profileSpecific), currentSessionData)