From 5eabee4e4091f60cc8da3a38ee33eed9124e06fd Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 9 Nov 2023 20:13:40 +0100 Subject: fixed error with empty display --- src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/at/hannibal2') 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( } private fun buildFinalDisplay(rawList: List>) = rawList.toMutableList().also { + if (it.isEmpty()) return@also if (inventoryOpen) { it.add(1, buildDisplayModeView()) } -- cgit