diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/util/SBData.kt')
-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)) } |