From 6a057514b2cf8a485344aa147f37d507a44c2e71 Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Sun, 26 Mar 2023 23:57:28 +0700 Subject: [PATCH] [FIX] RequestTextureProvider localPath --- .../launchserver/auth/texture/RequestTextureProvider.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } } }