From e84c5a0fa9785a65a6edb5340bba19ef96707e1b Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 19 Mar 2024 10:15:17 +0100 Subject: code cleanup --- .../skyhanni/features/gui/customscoreboard/CustomScoreboard.kt | 4 ++-- 1 file 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 == "" && lastOrNull()?.first?.isEmpty() == true + lines.first().first == "" && lastOrNull()?.first?.isEmpty() == true ) { continue } // Adds empty lines - if (lines[0].first == "") { + if (lines.first().first == "") { add("" to HorizontalAlignment.LEFT) continue } -- cgit