Fixed offset on swimming ponies

This commit is contained in:
Sollace 2019-06-26 15:43:31 +02:00
parent 9999282070
commit b290d4c7e7

View file

@ -19,7 +19,7 @@ public class PostureSwimming extends PostureFlight {
protected double calculateIncline(PlayerEntity player, double motionX, double motionY, double motionZ) { protected double calculateIncline(PlayerEntity player, double motionX, double motionY, double motionZ) {
double motionLerp = MathUtil.clampLimit(Math.sqrt(motionX * motionX + motionZ * motionZ) * 30, 1) / 2; double motionLerp = MathUtil.clampLimit(Math.sqrt(motionX * motionX + motionZ * motionZ) * 30, 1) / 2;
GlStateManager.translated(0, 0, -1); GlStateManager.translated(0, 0.9, -1);
return 90 + super.calculateIncline(player, motionX, motionY, motionZ) * motionLerp; return 90 + super.calculateIncline(player, motionX, motionY, motionZ) * motionLerp;
} }