Update hdskins

This commit is contained in:
Sollace 2023-09-26 21:13:16 +01:00
parent 15274aba2b
commit 0f9e865dc4
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
2 changed files with 4 additions and 4 deletions

View file

@ -21,6 +21,6 @@ org.gradle.daemon=false
# Dependencies
modmenu_version=8.0.0-beta.1
kirin_version=1.16.0-beta.2+1.20.2
hd_skins_version=6.11.0-beta.3+1.20.2
kirin_version=1.16.0-beta.3+1.20.2
hd_skins_version=6.11.0-beta.4+1.20.2
mson_version=1.9.0-beta.1

View file

@ -82,7 +82,7 @@ public class MineLPHDSkins extends SkinsProxy implements ClientModInitializer {
if (entity instanceof AbstractClientPlayerEntity player) {
PlayerSkins skins = PlayerSkins.of(player);
if (skins != null) {
return skins.getProvidedSkinTypes();
return skins.combined().getProvidedSkinTypes();
}
}
@ -110,7 +110,7 @@ public class MineLPHDSkins extends SkinsProxy implements ClientModInitializer {
}
}
return Optional.of(player).map(PlayerSkins::of).map(skins -> skins.getSkin(type));
return Optional.of(player).map(PlayerSkins::of).flatMap(skins -> skins.combined().getSkin(type));
}
@Override