mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] JsonTextureProvider
This commit is contained in:
parent
50e6bb3b49
commit
474d557e3f
1 changed files with 2 additions and 2 deletions
|
@ -52,9 +52,9 @@ public Map<String, Texture> getAssets(UUID uuid, String username, String client)
|
|||
}
|
||||
}
|
||||
|
||||
public record JsonTexture(String url, String hash, Map<String, String> metadata) {
|
||||
public record JsonTexture(String url, String digest, Map<String, String> metadata) {
|
||||
public Texture toTexture() {
|
||||
return new Texture(url, hash == null ? null : SecurityHelper.fromHex(hash), metadata);
|
||||
return new Texture(url, digest == null ? null : SecurityHelper.fromHex(digest), metadata);
|
||||
}
|
||||
|
||||
public static Map<String, Texture> convertMap(Map<String, JsonTexture> map) {
|
||||
|
|
Loading…
Reference in a new issue