diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-09 20:13:40 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-09 20:13:40 +0100 |
commit | 5eabee4e4091f60cc8da3a38ee33eed9124e06fd (patch) | |
tree | 9cdbb582dc60f1eaa8233657a989e94d11396b73 /src/main/java/at/hannibal2/skyhanni | |
parent | 22747a9b72e36c51cec634a41123c3415c13e36c (diff) | |
download | skyhanni-5eabee4e4091f60cc8da3a38ee33eed9124e06fd.tar.gz skyhanni-5eabee4e4091f60cc8da3a38ee33eed9124e06fd.tar.bz2 skyhanni-5eabee4e4091f60cc8da3a38ee33eed9124e06fd.zip |
fixed error with empty display
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt | 1 |
1 files changed, 1 insertions, 0 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 fe2553c7f..26153e5c9 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt @@ -68,6 +68,7 @@ class SkyHanniTracker<Data : TrackerData>( } private fun buildFinalDisplay(rawList: List<List<Any>>) = rawList.toMutableList().also { + if (it.isEmpty()) return@also if (inventoryOpen) { it.add(1, buildDisplayModeView()) } |