aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt5
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())
}