Skip to content

Commit

Permalink
v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Dec 10, 2023
1 parent b5782c3 commit 6d30851
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "net.ccbluex"
version = "1.3.1"
version = "1.3.2"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ class AlteningAccount(var accountToken: String) : MinecraftAccount("TheAltening"
*/
override fun toRawJson(json: JsonObject) {
json["name"] = profile!!.username
json["uuid"] = profile!!.uuid.toString()
if (profile!!.uuid != null) {
json["uuid"] = profile!!.uuid.toString()
}
json["token"] = accessToken
json["hypixelLevel"] = hypixelLevel
json["hypixelRank"] = hypixelRank
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ class CrackedAccount(private val username: String) : MinecraftAccount("Cracked")

override fun toRawJson(json: JsonObject) {
json["name"] = profile!!.username
json["uuid"] = profile!!.uuid.toString()
if (profile!!.uuid != null) {
json["uuid"] = profile!!.uuid.toString()
}
}

override fun fromRawJson(json: JsonObject) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ class MicrosoftAccount : MinecraftAccount("Microsoft") {
*/
override fun toRawJson(json: JsonObject) {
json["name"] = profile!!.username
json["uuid"] = profile!!.uuid.toString()
if (profile!!.uuid != null) {
json["uuid"] = profile!!.uuid.toString()
}
json["refreshToken"] = refreshToken
json["authMethod"] = AuthMethod.entries.firstOrNull { it == authMethod }?.name ?: error("Unregistered auth method")
}
Expand Down

0 comments on commit 6d30851

Please sign in to comment.