[FIX] RequestTextureProvider localPath

This commit is contained in:
Gravita 2023-03-26 23:57:28 +07:00
parent 70d102222b
commit 6a057514b2

View file

@ -60,7 +60,8 @@ public Texture getCloakTexture(UUID uuid, String username, String client) throws
if (cloakLocalPath == null) { if (cloakLocalPath == null) {
return getTexture(textureUrl, true); return getTexture(textureUrl, true);
} else { } else {
return getTexture(textureUrl, Paths.get(cloakLocalPath), true); String path = getTextureURL(cloakLocalPath, uuid, username, client);
return getTexture(textureUrl, Paths.get(path), true);
} }
} }
@ -70,7 +71,8 @@ public Texture getSkinTexture(UUID uuid, String username, String client) throws
if (skinLocalPath == null) { if (skinLocalPath == null) {
return getTexture(textureUrl, false); return getTexture(textureUrl, false);
} else { } else {
return getTexture(textureUrl, Paths.get(skinLocalPath), false); String path = getTextureURL(skinLocalPath, uuid, username, client);
return getTexture(textureUrl, Paths.get(path), false);
} }
} }
} }