Fix #2783: Alex 皮肤应为 Slim 模型 (#2789)

This commit is contained in:
Glavo
2024-02-13 10:26:41 +08:00
committed by GitHub
parent 82fc1c067d
commit fe608e32f1

View File

@@ -155,7 +155,8 @@ public class Skin {
if (defaultSkinLoader == 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:
return Task.supplyAsync(() -> {
Texture skin = null, cape = null;