diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/texture/RequestTextureProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/texture/RequestTextureProvider.java index 3dc394f0..826b00c9 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/texture/RequestTextureProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/texture/RequestTextureProvider.java @@ -60,7 +60,8 @@ public Texture getCloakTexture(UUID uuid, String username, String client) throws if (cloakLocalPath == null) { return getTexture(textureUrl, true); } 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) { return getTexture(textureUrl, false); } else { - return getTexture(textureUrl, Paths.get(skinLocalPath), false); + String path = getTextureURL(skinLocalPath, uuid, username, client); + return getTexture(textureUrl, Paths.get(path), false); } } }