From b8eba5c1dcbe1fad4cdbd33ecc9d736ee3bd30a5 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 8 Oct 2023 09:23:15 +0200 Subject: fixed IndexOutOfBoundsException in AdvancedPlayerList --- .../skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt index ac91f5d8e..da3f2480a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt @@ -103,7 +103,7 @@ object AdvancedPlayerList { if (config.reverseSort) { newPlayerList = newPlayerList.reversed().toMutableList() } - if (extraTitles > 0) { + if (extraTitles > 0 && newPlayerList.size >= 19) { newPlayerList.add(19, original.first()) } newList.addAll(newPlayerList) -- cgit