Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

Commit

Permalink
stable uuid for cracked
Browse files Browse the repository at this point in the history
  • Loading branch information
hax0r31337 committed Dec 9, 2021
1 parent 0c3881c commit b0ef075
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "me.liuli"
version = "1.2.0"
version = "1.2.1"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/me/liuli/elixir/account/CrackedAccount.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class CrackedAccount : MinecraftAccount("Cracked") {
override var name = "Player"

override val session: Session
get() = Session(name, UUID.randomUUID().toString(), "-", "legacy")
get() = Session(name, UUID.nameUUIDFromBytes(name.toByteArray(Charsets.UTF_8)).toString(), "-", "legacy")

override fun update() {
// has nothing to update with cracked account
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/me/liuli/elixir/account/MicrosoftAccount.kt
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ class MicrosoftAccount : MinecraftAccount("Microsoft") {
/**
* Create a new [MicrosoftAccount] from OAuth
*/
fun buildFromOpenBrowser(handler: OAuthHandler) {
OAuthServer(handler).start()
fun buildFromOpenBrowser(handler: OAuthHandler): OAuthServer {
return OAuthServer(handler).also { it.start() }
}

fun replaceKeys(method: AuthMethod, string: String)
Expand Down

0 comments on commit b0ef075

Please sign in to comment.