forked from RepoMirrors/kami-blue
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:
parent
ddd8050b13
commit
682e3030c1
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue