mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] RequestTextureProvider localPath
This commit is contained in:
parent
70d102222b
commit
6a057514b2
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue