From 6bb74a1b17ab5106f914d8458858c2f55c197baa Mon Sep 17 00:00:00 2001 From: HypherionMC Date: Wed, 22 Nov 2023 23:27:29 +0200 Subject: [PATCH] HYP YOU IDIOT!... Fix fetchPlayer not returning actual player information --- gradle.properties | 2 +- .../com/hypherionmc/sdlink/core/accounts/MinecraftAccount.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 53fddae..51db38e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ version_major=0 version_minor=0 -version_patch=54 +version_patch=55 shade_group=com.hypherionmc.sdlink.shaded. diff --git a/src/main/java/com/hypherionmc/sdlink/core/accounts/MinecraftAccount.java b/src/main/java/com/hypherionmc/sdlink/core/accounts/MinecraftAccount.java index 026249c..ea7b236 100644 --- a/src/main/java/com/hypherionmc/sdlink/core/accounts/MinecraftAccount.java +++ b/src/main/java/com/hypherionmc/sdlink/core/accounts/MinecraftAccount.java @@ -393,7 +393,7 @@ public class MinecraftAccount { Response response = client.newCall(request).execute(); if (response.isSuccessful() && response.body() != null) { - JSONObject obj = new JSONObject(new JSONTokener(response.body().toString())); + JSONObject obj = new JSONObject(new JSONTokener(response.body().string())); String uuid = ""; String returnname = name;