Remove some useless code

This commit is contained in:
xfl03 committed 2016-08-05 17:00:03 +08:00
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);
}
}