From d64d56ed113ef85d408909ddf0cfe303ef668625 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 3 Oct 2022 14:15:40 +0200 Subject: minor fix --- src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/java/at') 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 { val list = mutableListOf() 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) } -- cgit