mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 11:55:52 -04:00
* Fix #3295: 修复离线账户选择 Steve/Alex 皮肤时模型错误的问题 * update
This commit is contained in:
parent
554ecfd6d5
commit
d5ab14f476
@ -201,6 +201,12 @@ public class OfflineAccountSkinPane extends StackPane {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Skin getSkin() {
|
private Skin getSkin() {
|
||||||
return new Skin(skinItem.getSelectedData(), cslApiField.getText(), modelCombobox.getValue(), skinSelector.getValue(), capeSelector.getValue());
|
Skin.Type type = skinItem.getSelectedData();
|
||||||
|
if (type == Skin.Type.LOCAL_FILE) {
|
||||||
|
return new Skin(type, cslApiField.getText(), modelCombobox.getValue(), skinSelector.getValue(), capeSelector.getValue());
|
||||||
|
} else {
|
||||||
|
String cslApi = type == Skin.Type.CUSTOM_SKIN_LOADER_API ? cslApiField.getText() : null;
|
||||||
|
return new Skin(type, cslApi, null, null, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user