aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-08-27 16:01:10 +0200
committernea <nea@nea.moe>2023-08-27 16:01:10 +0200
commit519fcf26a30ac3a3fcc1adc0c21e84f6f0ec4a2a (patch)
treee0f814875dbfa53fe8a00f5884505a87a898aa8e /src
parent57d4402c6091a11578fcfb18cdb325a116d85e3d (diff)
downloadfirmament-519fcf26a30ac3a3fcc1adc0c21e84f6f0ec4a2a.tar.gz
firmament-519fcf26a30ac3a3fcc1adc0c21e84f6f0ec4a2a.tar.bz2
firmament-519fcf26a30ac3a3fcc1adc0c21e84f6f0ec4a2a.zip
Clear profile id outside of SkyBlock
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/moe/nea/firmament/util/SBData.kt4
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))
}