mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 04:27:59 +01:00
Fix seapony skins. Might have been a simpler issue than I thought
This commit is contained in:
parent
667ce0ce4b
commit
814dac6414
1 changed files with 2 additions and 1 deletions
|
@ -65,8 +65,9 @@ public class AquaticPlayerPonyRenderer extends PlayerPonyRenderer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateSeaponyState(AbstractClientPlayerEntity player) {
|
private void updateSeaponyState(AbstractClientPlayerEntity player) {
|
||||||
|
wet = PonyPosture.isSeaponyModifier(player);
|
||||||
if (!(player instanceof PreviewModel)) {
|
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);
|
float interpolated = getInternalRenderer().getModels().body().getAttributes().getMainInterpolator().interpolate("seapony_state", state, 5);
|
||||||
|
|
||||||
if (!MathUtil.compareFloats(interpolated, state)) {
|
if (!MathUtil.compareFloats(interpolated, state)) {
|
||||||
|
|
Loading…
Reference in a new issue