mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 07:27:59 +01:00
Fixed wearables using the incorrect texture in the preview
This commit is contained in:
parent
aef8d4f2b8
commit
b480c94dfa
1 changed files with 3 additions and 2 deletions
|
@ -95,12 +95,13 @@ public class MineLPHDSkins extends SkinsProxy implements ClientModInitializer {
|
|||
if (player instanceof DummyPlayer dummy) {
|
||||
PlayerSkin skin = dummy.getTextures().get(type);
|
||||
|
||||
if (skin.isReady()) {
|
||||
if (skin.isReady() || getAvailableSkins(player).contains(type.getId())) {
|
||||
return Optional.of(skin.getId());
|
||||
}
|
||||
|
||||
PlayerSkin main = dummy.getTextures().get(SkinType.SKIN);
|
||||
if (IPony.getManager().getPony(main.getId()).metadata().isWearing(Wearable.REGISTRY.getOrDefault(type.getId(), Wearable.NONE))) {
|
||||
Wearable wearable = Wearable.REGISTRY.getOrDefault(type.getId(), Wearable.NONE);
|
||||
if (wearable != Wearable.NONE && IPony.getManager().getPony(main.getId()).metadata().isWearing(wearable)) {
|
||||
return Optional.of(main.getId());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue