Merge pull request #537 from zkitefly/skin
离线账户选择 Steve/Alex 皮肤时强制使用本地 Yggdrasil 服务器
This commit is contained in:
commit
aa59281b4e
|
@ -38,7 +38,6 @@ import com.tungsten.fclcore.auth.authlibinjector.AuthlibInjectorArtifactInfo;
|
|||
import com.tungsten.fclcore.auth.authlibinjector.AuthlibInjectorArtifactProvider;
|
||||
import com.tungsten.fclcore.auth.authlibinjector.AuthlibInjectorDownloadException;
|
||||
import com.tungsten.fclcore.auth.yggdrasil.Texture;
|
||||
import com.tungsten.fclcore.auth.yggdrasil.TextureModel;
|
||||
import com.tungsten.fclcore.auth.yggdrasil.TextureType;
|
||||
import com.tungsten.fclcore.fakefx.beans.binding.Bindings;
|
||||
import com.tungsten.fclcore.fakefx.beans.binding.ObjectBinding;
|
||||
|
@ -100,14 +99,7 @@ public class OfflineAccount extends Account {
|
|||
}
|
||||
|
||||
protected boolean loadAuthlibInjector(Skin skin) {
|
||||
if (skin == null) return false;
|
||||
if (skin.getType() == Skin.Type.DEFAULT) return false;
|
||||
TextureModel defaultModel = TextureModel.detectUUID(getUUID());
|
||||
if (skin.getType() == Skin.Type.ALEX && defaultModel == TextureModel.ALEX ||
|
||||
skin.getType() == Skin.Type.STEVE && defaultModel == TextureModel.STEVE) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return skin != null && skin.getType() != Skin.Type.DEFAULT;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue