Update Skin.java
This commit is contained in:
parent
d6e7e61711
commit
29f3b16dfe
|
@ -156,7 +156,8 @@ public class Skin {
|
||||||
if (defaultSkinLoader == null) {
|
if (defaultSkinLoader == null) {
|
||||||
return Task.supplyAsync(() -> null);
|
return Task.supplyAsync(() -> null);
|
||||||
}
|
}
|
||||||
return Task.supplyAsync(() -> new LoadedSkin(TextureModel.STEVE, Texture.loadTexture(defaultSkinLoader.apply(type)), null));
|
TextureModel model = type == Type.ALEX ? TextureModel.ALEX : TextureModel.STEVE;
|
||||||
|
return Task.supplyAsync(() -> new LoadedSkin(model, Texture.loadTexture(defaultSkinLoader.apply(type)), null));
|
||||||
case LOCAL_FILE:
|
case LOCAL_FILE:
|
||||||
return Task.supplyAsync(() -> {
|
return Task.supplyAsync(() -> {
|
||||||
Texture skin = null, cape = null;
|
Texture skin = null, cape = null;
|
||||||
|
|
Loading…
Reference in New Issue