mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-22 16:39:46 +00:00
Remove some useless code
This commit is contained in:
1 parent
1d88a98040
commit
8bccab4f0b
8 files changed
+64
-120
No files matched your search
@@ -23,7 +23,9 @@ public class MojangAPILoader implements IProfileLoader {
|
||||
|
||||
public static MinecraftSessionService defaultSessionService=null;
|
||||
@Override
|
||||
public UserProfile loadProfile(SkinSiteProfile ssp, GameProfile gameProfile) throws Exception {
|
||||
public UserProfile loadProfile(SkinSiteProfile ssp, GameProfile gameProfile, boolean local) throws Exception {
|
||||
if(local)
|
||||
CustomSkinLoader.logger.warning("!!Local Skin couldn't load by MojangAPI.!!");
|
||||
if(defaultSessionService==null){
|
||||
CustomSkinLoader.logger.warning("Session Service Not Exist.");
|
||||
return null;
|
||||
@@ -59,10 +61,4 @@ public class MojangAPILoader implements IProfileLoader {
|
||||
return null;
|
||||
return new GameProfile(gameProfile.getId(),gameProfile.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserProfile loadLocalProfile(SkinSiteProfile ssp, GameProfile gameProfile) throws Exception {
|
||||
CustomSkinLoader.logger.warning("Local Skin couldn't load by MojangAPI.");
|
||||
return loadProfile(ssp,gameProfile);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user