Fix seapony skins. Might have been a simpler issue than I thought

This commit is contained in:
Sollace 2023-12-06 15:18:39 +00:00
parent 667ce0ce4b
commit 814dac6414
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -65,8 +65,9 @@ public class AquaticPlayerPonyRenderer extends PlayerPonyRenderer {
}
private void updateSeaponyState(AbstractClientPlayerEntity player) {
wet = PonyPosture.isSeaponyModifier(player);
if (!(player instanceof PreviewModel)) {
float state = PonyPosture.isSeaponyModifier(player) ? 100 : 0;
float state = wet ? 100 : 0;
float interpolated = getInternalRenderer().getModels().body().getAttributes().getMainInterpolator().interpolate("seapony_state", state, 5);
if (!MathUtil.compareFloats(interpolated, state)) {