[FIX] JsonTextureProvider

This commit is contained in:
Gravita 2023-10-29 20:16:23 +07:00
parent 50e6bb3b49
commit 474d557e3f

View file

@ -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) {