diff options
author | nea <nea@nea.moe> | 2023-08-27 16:01:10 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-08-27 16:01:10 +0200 |
commit | 519fcf26a30ac3a3fcc1adc0c21e84f6f0ec4a2a (patch) | |
tree | e0f814875dbfa53fe8a00f5884505a87a898aa8e | |
parent | 57d4402c6091a11578fcfb18cdb325a116d85e3d (diff) | |
download | firmament-519fcf26a30ac3a3fcc1adc0c21e84f6f0ec4a2a.tar.gz firmament-519fcf26a30ac3a3fcc1adc0c21e84f6f0ec4a2a.tar.bz2 firmament-519fcf26a30ac3a3fcc1adc0c21e84f6f0ec4a2a.zip |
Clear profile id outside of SkyBlock
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/util/SBData.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/util/SBData.kt b/src/main/kotlin/moe/nea/firmament/util/SBData.kt index 22ddd3d..8af905e 100644 --- a/src/main/kotlin/moe/nea/firmament/util/SBData.kt +++ b/src/main/kotlin/moe/nea/firmament/util/SBData.kt @@ -6,7 +6,7 @@ package moe.nea.firmament.util -import java.util.UUID +import java.util.* import kotlinx.serialization.SerializationException import kotlinx.serialization.decodeFromString import kotlin.time.Duration @@ -78,6 +78,8 @@ object SBData { val lastLocraw = locraw val n = Firmament.json.decodeFromString<Locraw>(unformattedString) if (update) { + if (n.gametype != "SKYBLOCK") + profileId = null locraw = n SkyblockServerUpdateEvent.publish(SkyblockServerUpdateEvent(lastLocraw, locraw)) } |