Skip to content

Commit

Permalink
Remove usage of var
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Jun 17, 2024
1 parent 0b183c7 commit f441d5e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import net.kyori.adventure.text.format.NamedTextColor;
import net.kyori.adventure.text.format.TextDecoration;
import net.raphimc.minecraftauth.MinecraftAuth;
import net.raphimc.minecraftauth.step.java.StepMCProfile;
import net.raphimc.minecraftauth.step.java.StepMCToken;
import net.raphimc.minecraftauth.step.java.session.StepFullJavaSession;
import net.raphimc.minecraftauth.step.msa.StepCredentialsMsaCode;
import org.geysermc.mcprotocollib.auth.GameProfile;
Expand Down Expand Up @@ -185,8 +187,8 @@ private static void login() {
throw new RuntimeException(e);
}

var mcProfile = fullJavaSession.getMcProfile();
var mcToken = mcProfile.getMcToken();
StepMCProfile.MCProfile mcProfile = fullJavaSession.getMcProfile();
StepMCToken.MCToken mcToken = mcProfile.getMcToken();
protocol = new MinecraftProtocol(
new GameProfile(mcProfile.getId(), mcProfile.getName()),
mcToken.getAccessToken());
Expand Down

0 comments on commit f441d5e

Please sign in to comment.