Clear profile id outside of SkyBlock
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
package moe.nea.firmament.util
|
package moe.nea.firmament.util
|
||||||
|
|
||||||
import java.util.UUID
|
import java.util.*
|
||||||
import kotlinx.serialization.SerializationException
|
import kotlinx.serialization.SerializationException
|
||||||
import kotlinx.serialization.decodeFromString
|
import kotlinx.serialization.decodeFromString
|
||||||
import kotlin.time.Duration
|
import kotlin.time.Duration
|
||||||
@@ -78,6 +78,8 @@ object SBData {
|
|||||||
val lastLocraw = locraw
|
val lastLocraw = locraw
|
||||||
val n = Firmament.json.decodeFromString<Locraw>(unformattedString)
|
val n = Firmament.json.decodeFromString<Locraw>(unformattedString)
|
||||||
if (update) {
|
if (update) {
|
||||||
|
if (n.gametype != "SKYBLOCK")
|
||||||
|
profileId = null
|
||||||
locraw = n
|
locraw = n
|
||||||
SkyblockServerUpdateEvent.publish(SkyblockServerUpdateEvent(lastLocraw, locraw))
|
SkyblockServerUpdateEvent.publish(SkyblockServerUpdateEvent(lastLocraw, locraw))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user