fix: skin name to uuid lookup endpoint
This commit is contained in:
parent
63db907d32
commit
1974b4b34b
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ public class MojangSkinCache {
|
||||||
if (idCache.containsKey(name.toLowerCase())) return fetchByUUID(idCache.get(name.toLowerCase()).getId());
|
if (idCache.containsKey(name.toLowerCase())) return fetchByUUID(idCache.get(name.toLowerCase()).getId());
|
||||||
|
|
||||||
return FutureUtil.exceptionPrintingSupplyAsync(() -> {
|
return FutureUtil.exceptionPrintingSupplyAsync(() -> {
|
||||||
URL url = parseUrl("https://api.mojang.com/users/profiles/minecraft/" + name);
|
URL url = parseUrl("https://api.minecraftservices.com/minecraft/profile/lookup/name/" + name);
|
||||||
HttpURLConnection connection = null;
|
HttpURLConnection connection = null;
|
||||||
try {
|
try {
|
||||||
connection = (HttpURLConnection) url.openConnection();
|
connection = (HttpURLConnection) url.openConnection();
|
||||||
|
|
Loading…
Reference in a new issue