mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +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() {
|
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) {
|
public static Map<String, Texture> convertMap(Map<String, JsonTexture> map) {
|
||||||
|
|
Loading…
Reference in a new issue