From bc27a67c4495c8e4a37f559e1224ebfc0d649e80 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 7 Nov 2023 21:50:26 +0100 Subject: Used SkyHanniTracker in SlayerItemProfitTracker --- src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') 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( private val getStorage: (Storage.ProfileSpecific) -> Data, private val update: () -> Unit, ) { - private var inventoryOpen = false + fun isInventoryOpen() = inventoryOpen + private fun getSharedTracker(): SharedTracker? { val profileSpecific = ProfileStorageData.profileSpecific ?: return null return SharedTracker(getStorage(profileSpecific), currentSessionData) -- cgit