mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +01:00
Fixed wings of icarus not having correct angles when worn by a mob
This commit is contained in:
parent
002ace1846
commit
f067e67eca
1 changed files with 11 additions and 16 deletions
|
@ -108,10 +108,7 @@ public class WingsFeatureRenderer<E extends LivingEntity> implements AccessoryFe
|
|||
}
|
||||
|
||||
void setAngles(LivingEntity entity) {
|
||||
if (entity instanceof PlayerEntity) {
|
||||
Pony pony = Pony.of((PlayerEntity)entity);
|
||||
|
||||
float spreadAmount = pony.getMotion().getWingAngle();
|
||||
float spreadAmount = entity instanceof PlayerEntity ? Pony.of((PlayerEntity)entity).getMotion().getWingAngle() : 0;
|
||||
|
||||
base.pitch = 1.5F + 0.8F - spreadAmount / 9F;
|
||||
base.yaw = k * (0.8F + spreadAmount / 3F);
|
||||
|
@ -129,8 +126,6 @@ public class WingsFeatureRenderer<E extends LivingEntity> implements AccessoryFe
|
|||
feathers[i].pitch = -spread;
|
||||
feathers[i].yaw = k * 0.3F;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue