mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +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) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue