aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-08 09:23:15 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-08 09:23:15 +0200
commitb8eba5c1dcbe1fad4cdbd33ecc9d736ee3bd30a5 (patch)
tree43f99536cb5dcac40a5662aa711bdb69af1f1af4 /src/main/java/at/hannibal2/skyhanni
parent30c075e6526214ad5af88f0978b7057a1bafedae (diff)
downloadskyhanni-b8eba5c1dcbe1fad4cdbd33ecc9d736ee3bd30a5.tar.gz
skyhanni-b8eba5c1dcbe1fad4cdbd33ecc9d736ee3bd30a5.tar.bz2
skyhanni-b8eba5c1dcbe1fad4cdbd33ecc9d736ee3bd30a5.zip
fixed IndexOutOfBoundsException in AdvancedPlayerList
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt2
1 files changed, 1 insertions, 1 deletions
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)