From 474d557e3f6fb5ea053b4412db2d63dd4df1fcb8 Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Sun, 29 Oct 2023 20:16:23 +0700 Subject: [PATCH] [FIX] JsonTextureProvider --- .../gravit/launchserver/auth/texture/JsonTextureProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/texture/JsonTextureProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/texture/JsonTextureProvider.java index ed109c90..035b3f2f 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/texture/JsonTextureProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/texture/JsonTextureProvider.java @@ -52,9 +52,9 @@ public Map getAssets(UUID uuid, String username, String client) } } - public record JsonTexture(String url, String hash, Map metadata) { + public record JsonTexture(String url, String digest, Map 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 convertMap(Map map) {