Support 1.21.6. (#341)

This commit is contained in:
ZekerZhayard authored and GitHub committed 2025-06-21 21:54:07 +08:00
1 parent a195b42bc4
commit 1a15951791
15 files changed
+95 -27

No files matched your search

@@ -10,7 +10,7 @@ import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.function.Function;
import com.google.common.collect.Maps;
import com.google.common.collect.ImmutableMap;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.mojang.authlib.GameProfile;
@@ -194,6 +194,7 @@ public class CustomSkinLoader {
return null;
}
public final static Map<MinecraftProfileTexture.Type, MinecraftProfileTexture> INCOMPLETED = ImmutableMap.of();
//For Skull
public static Map<MinecraftProfileTexture.Type, MinecraftProfileTexture> loadProfileFromCache(final GameProfile gameProfile) {
String username = gameProfile.getName();
@@ -222,7 +223,7 @@ public class CustomSkinLoader {
threadPool.execute(loadThread);
}
}
return Maps.newHashMap();
return INCOMPLETED;
}
private static Logger initLogger() {