aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/SkyblockSeason.kt
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-07-15 19:54:04 +0200
committerGitHub <noreply@github.com>2024-07-15 19:54:04 +0200
commitba091f8c3cfa665e83c789e1a5845d1ae0f26b6b (patch)
treef52c6c37addc52c27452e0a161ee0b54485e093d /src/main/java/at/hannibal2/skyhanni/utils/SkyblockSeason.kt
parent2de249337b48f5de439afd16c6793abbe3084a25 (diff)
downloadskyhanni-ba091f8c3cfa665e83c789e1a5845d1ae0f26b6b.tar.gz
skyhanni-ba091f8c3cfa665e83c789e1a5845d1ae0f26b6b.tar.bz2
skyhanni-ba091f8c3cfa665e83c789e1a5845d1ae0f26b6b.zip
Backend: RecalculatingValue as a ReadOnlyProperty (#2151)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/SkyblockSeason.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SkyblockSeason.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SkyblockSeason.kt b/src/main/java/at/hannibal2/skyhanni/utils/SkyblockSeason.kt
index edeb706b7..d74b80959 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/SkyblockSeason.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/SkyblockSeason.kt
@@ -21,9 +21,7 @@ enum class SkyblockSeason(
companion object {
- fun getCurrentSeason(): SkyblockSeason? = currentSeason.getValue()
-
- private val currentSeason = RecalculatingValue(1.seconds) {
+ val currentSeason by RecalculatingValue(1.seconds) {
getSeasonByName(SkyBlockTime.now().monthName)
}