Fixed getNameFromUUID

Now it gets the player's current name instead of the first one they've ever had. How silly of me!
This commit is contained in:
Dewy REDACTED 2020-04-04 14:07:43 +01:00
parent ddd8050b13
commit 682e3030c1
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ public class EntityUtil {
JsonParser parser = new JsonParser();
return parser.parse(jsonUrl).getAsJsonArray().get(0).getAsJsonObject().get("name").toString();
return parser.parse(jsonUrl).getAsJsonArray().get(parser.parse(jsonUrl).getAsJsonArray().size() - 1).getAsJsonObject().get("name").toString();
} catch (IOException ex) {
KamiMod.log.error(ex.getStackTrace());