aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-10-03 14:15:40 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-10-03 14:15:40 +0200
commitd64d56ed113ef85d408909ddf0cfe303ef668625 (patch)
tree84fbd4a70fcf1d73df4a03b696293600f6895960 /src/main/java/at
parent08f15c1fc11e8c3142c859fdff0c3e80afcab0fe (diff)
downloadskyhanni-d64d56ed113ef85d408909ddf0cfe303ef668625.tar.gz
skyhanni-d64d56ed113ef85d408909ddf0cfe303ef668625.tar.bz2
skyhanni-d64d56ed113ef85d408909ddf0cfe303ef668625.zip
minor fix
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt b/src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt
index 495deabb9..91cef39a9 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt
@@ -11,7 +11,6 @@ import net.minecraftforge.fml.common.gameevent.TickEvent
class ScoreboardData {
companion object {
-
private val splitIcons = listOf(
"\uD83C\uDF6B",
"\uD83D\uDCA3",
@@ -32,7 +31,7 @@ class ScoreboardData {
fun sidebarLinesFormatted(): List<String> {
val list = mutableListOf<String>()
for (line in sidebarLinesRaw) {
- val seperator = splitIcons.find { line.contains(it) }!!
+ val seperator = splitIcons.find { line.contains(it) } ?: continue
val split = line.split(seperator)
val start = split[0]
var end = split[1]
@@ -40,7 +39,7 @@ class ScoreboardData {
end = end.substring(2)
}
- list.add(start+end)
+ list.add(start + end)
}