aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-09-17 21:08:20 +0200
committerLinnea Gräf <nea@nea.moe>2025-09-17 21:08:20 +0200
commitdd6a3e3d657344f32ccf85fb112a21cd46dbd974 (patch)
tree32da863a907f5ac8f28753dcaede3f9c58798958 /src/main/kotlin/util
parenta0b82b62198b03b0cd5ef7a2b6206c543dd6db3f (diff)
downloadFirmament-dd6a3e3d657344f32ccf85fb112a21cd46dbd974.tar.gz
Firmament-dd6a3e3d657344f32ccf85fb112a21cd46dbd974.tar.bz2
Firmament-dd6a3e3d657344f32ccf85fb112a21cd46dbd974.zip
fix: status effects being inverted
Diffstat (limited to 'src/main/kotlin/util')
-rw-r--r--src/main/kotlin/util/SBData.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/kotlin/util/SBData.kt b/src/main/kotlin/util/SBData.kt
index 8675842..27a3edc 100644
--- a/src/main/kotlin/util/SBData.kt
+++ b/src/main/kotlin/util/SBData.kt
@@ -41,6 +41,12 @@ object SBData {
*/
val skyblockLocation: SkyBlockIsland? get() = locraw?.skyblockLocation
val hasValidLocraw get() = locraw?.server !in listOf("limbo", null)
+
+ /**
+ * Check if the player is currently on skyblock.
+ *
+ * Nota bene: We don't generally disable features outside of SkyBlock unless they could lead to bans.
+ */
val isOnSkyblock get() = locraw?.gametype == "SKYBLOCK"
var profileIdCommandDebounce = TimeMark.farPast()
fun init() {