aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-09 20:13:40 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-09 20:13:40 +0100
commit5eabee4e4091f60cc8da3a38ee33eed9124e06fd (patch)
tree9cdbb582dc60f1eaa8233657a989e94d11396b73 /src/main/java/at
parent22747a9b72e36c51cec634a41123c3415c13e36c (diff)
downloadskyhanni-5eabee4e4091f60cc8da3a38ee33eed9124e06fd.tar.gz
skyhanni-5eabee4e4091f60cc8da3a38ee33eed9124e06fd.tar.bz2
skyhanni-5eabee4e4091f60cc8da3a38ee33eed9124e06fd.zip
fixed error with empty display
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt1
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())
}