Update Skin.java

This commit is contained in:
Tungstend 2024-02-17 15:35:43 +08:00
parent d6e7e61711
commit 29f3b16dfe
1 changed files with 2 additions and 1 deletions

View File

@ -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;