Support 1.21.9. (#347)

This commit is contained in:
ZekerZhayard authored and GitHub committed 2025-10-07 08:31:05 +09:00
1 parent 1fbe258365
commit 1f3d19ac6e
60 files changed
+635 -722

No files matched your search

@@ -15,6 +15,7 @@ import com.google.gson.GsonBuilder;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.minecraft.MinecraftProfileTexture;
import com.mojang.authlib.properties.Property;
import com.mojang.authlib.properties.PropertyMap;
import com.mojang.util.UUIDTypeAdapter;
import customskinloader.CustomSkinLoader;
import customskinloader.utils.HttpRequestUtil;
@@ -44,7 +45,7 @@ public class DynamicSkullManager {
private List<GameProfile> loadingList = Lists.newArrayList();
private void parseGameProfile(GameProfile profile) {
Property textureProperty = Iterables.getFirst(profile.getProperties().get("textures"), null);
Property textureProperty = Iterables.getFirst(TextureUtil.AuthlibField.GAME_PROFILE_PROPERTIES.<PropertyMap>get(profile).get("textures"), null);
if (textureProperty == null) {
staticTextures.put(profile, Maps.newHashMap());
return;