aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-19 10:15:17 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-19 10:15:17 +0100
commite84c5a0fa9785a65a6edb5340bba19ef96707e1b (patch)
tree865ef8b2b3f2d23c78a98b7ee017945eaab11f86 /src/main/java/at
parentdc391b540873a9e34d3f9bb75b7b9e84690357e2 (diff)
downloadskyhanni-e84c5a0fa9785a65a6edb5340bba19ef96707e1b.tar.gz
skyhanni-e84c5a0fa9785a65a6edb5340bba19ef96707e1b.tar.bz2
skyhanni-e84c5a0fa9785a65a6edb5340bba19ef96707e1b.zip
code cleanup
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/CustomScoreboard.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/CustomScoreboard.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/CustomScoreboard.kt
index 933c4d47e..87546fb06 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/CustomScoreboard.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/CustomScoreboard.kt
@@ -103,13 +103,13 @@ class CustomScoreboard {
// Hide consecutive empty lines
if (
informationFilteringConfig.hideConsecutiveEmptyLines &&
- lines.isNotEmpty() && lines[0].first == "<empty>" && lastOrNull()?.first?.isEmpty() == true
+ lines.first().first == "<empty>" && lastOrNull()?.first?.isEmpty() == true
) {
continue
}
// Adds empty lines
- if (lines[0].first == "<empty>") {
+ if (lines.first().first == "<empty>") {
add("" to HorizontalAlignment.LEFT)
continue
}