From 519fcf26a30ac3a3fcc1adc0c21e84f6f0ec4a2a Mon Sep 17 00:00:00 2001 From: nea Date: Sun, 27 Aug 2023 16:01:10 +0200 Subject: Clear profile id outside of SkyBlock --- src/main/kotlin/moe/nea/firmament/util/SBData.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/moe/nea/firmament/util') 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(unformattedString) if (update) { + if (n.gametype != "SKYBLOCK") + profileId = null locraw = n SkyblockServerUpdateEvent.publish(SkyblockServerUpdateEvent(lastLocraw, locraw)) } -- cgit