Skip to content

Commit

Permalink
improve naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
SpoilerRules committed Jan 23, 2024
1 parent 6f30646 commit 3518efe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/minecraft/client/Minecraft.java
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public static Map<String, String> getSessionInfo() {
return map;
}

public void sessionSet(Session session) {
public void setFreshSession(Session session) {
this.profileProperties.clear();
this.session = session;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
package net.minecraft.client.gui.mainMenuGui.microsoftLogin

import java.awt.Desktop
import java.net.Proxy
import java.net.URI

import com.mojang.authlib.Agent
import com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService

import net.minecraft.client.Minecraft
import net.minecraft.util.Session

import me.liuli.elixir.account.MicrosoftAccount
import me.liuli.elixir.compat.OAuthServer
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.GuiScreen

import net.minecraft.util.Session
import org.apache.logging.log4j.LogManager
import java.awt.Desktop
import java.awt.Toolkit
import java.awt.datatransfer.StringSelection
import java.net.BindException
import java.net.Proxy
import java.net.URI

object LoginHandler {
private lateinit var authServer: OAuthServer
Expand Down Expand Up @@ -56,7 +52,7 @@ object LoginHandler {
override fun authResult(account: MicrosoftAccount) {
userAuthentication.setUsername(account.session.username)

mc.sessionSet(
mc.setFreshSession(
Session(
account.session.username,
account.session.uuid,
Expand Down

0 comments on commit 3518efe

Please sign in to comment.