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
@@ -14,6 +14,7 @@ import customskinloader.profile.UserProfile;
|
||||
import customskinloader.utils.HttpRequestUtil;
|
||||
import customskinloader.utils.HttpTextureUtil;
|
||||
import customskinloader.utils.HttpUtil0;
|
||||
import customskinloader.utils.TextureUtil;
|
||||
|
||||
public class LegacyLoader implements ICustomSkinLoaderPlugin, ProfileLoader.IProfileLoader {
|
||||
|
||||
@@ -160,13 +161,12 @@ public class LegacyLoader implements ICustomSkinLoaderPlugin, ProfileLoader.IPro
|
||||
return profile;
|
||||
}
|
||||
|
||||
private void getTextureUrl(
|
||||
SkinSiteProfile ssp, GameProfile gameProfile, String baseUrl, Consumer<String> onSuccess) {
|
||||
private void getTextureUrl(SkinSiteProfile ssp, GameProfile gameProfile, String baseUrl, Consumer<String> onSuccess) {
|
||||
//Base URL is empty
|
||||
if (baseUrl == null || baseUrl.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
String url = expandURL(baseUrl, gameProfile.getName());
|
||||
String url = expandURL(baseUrl, TextureUtil.AuthlibField.GAME_PROFILE_NAME.get(gameProfile));
|
||||
//No texture can be loaded
|
||||
if (url == null) {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user