diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-24 10:57:56 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-24 10:57:56 +0100 |
commit | 2e1013d06f0636f4237f8fdc61bd73274297536a (patch) | |
tree | fa8213612e50089aa1371eab2c20b14acd9fab3b /src/main/java | |
parent | ff8e74ae6145218b65c63cd445b1035444550e99 (diff) | |
download | skyhanni-2e1013d06f0636f4237f8fdc61bd73274297536a.tar.gz skyhanni-2e1013d06f0636f4237f8fdc61bd73274297536a.tar.bz2 skyhanni-2e1013d06f0636f4237f8fdc61bd73274297536a.zip |
code cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt index 0dfdf7642..0b0fab40f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt @@ -246,7 +246,7 @@ enum class ScoreboardElement( companion object { // I don't know why, but this field is needed for it to work - @kotlin.jvm.JvmField + @JvmField val defaultOption = listOf( TITLE, PROFILE, diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt index c7dd0cfb9..6c914a50c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt @@ -34,7 +34,7 @@ private fun getSbLines(): List<String> { enum class ScoreboardEvents( private val displayLine: Supplier<List<String>>, private val showWhen: () -> Boolean, - private val configLine: String + private val configLine: String, ) { VOTING( ::getVotingLines, @@ -182,7 +182,7 @@ enum class ScoreboardEvents( } // I don't know why, but this field is needed for it to work - @kotlin.jvm.JvmField + @JvmField val defaultOption = listOf( VOTING, SERVER_CLOSE, @@ -225,7 +225,6 @@ private fun getVotingLines() = buildList { } } - private fun getVotingShowWhen(): Boolean { return SbPattern.yearVotesPattern.anyMatches(getSbLines()) } |