mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-25 04:04:25 +00:00
Support 1.21.9. (#347)
This commit is contained in:
1 parent
1fbe258365
commit
1f3d19ac6e
60 files changed
+635
-722
No files matched your search
@@ -12,6 +12,7 @@ import customskinloader.plugin.ICustomSkinLoaderPlugin;
|
||||
import customskinloader.profile.UserProfile;
|
||||
import customskinloader.utils.HttpRequestUtil;
|
||||
import customskinloader.utils.HttpUtil0;
|
||||
import customskinloader.utils.TextureUtil;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
@@ -86,7 +87,7 @@ public class JsonAPILoader implements ICustomSkinLoaderPlugin, ProfileLoader.IPr
|
||||
|
||||
@Override
|
||||
public UserProfile loadProfile(SkinSiteProfile ssp, GameProfile gameProfile) throws Exception {
|
||||
String username = gameProfile.getName();
|
||||
String username = TextureUtil.AuthlibField.GAME_PROFILE_NAME.get(gameProfile);
|
||||
if (StringUtils.isEmpty(ssp.root)) {
|
||||
CustomSkinLoader.logger.info("Root not defined.");
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user