diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-08 09:23:15 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-08 09:23:15 +0200 |
commit | b8eba5c1dcbe1fad4cdbd33ecc9d736ee3bd30a5 (patch) | |
tree | 43f99536cb5dcac40a5662aa711bdb69af1f1af4 /src/main/java/at/hannibal2/skyhanni | |
parent | 30c075e6526214ad5af88f0978b7057a1bafedae (diff) | |
download | skyhanni-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.kt | 2 |
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) |