mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 06:18:00 +01:00
Fixed offset on swimming ponies
This commit is contained in:
parent
9999282070
commit
b290d4c7e7
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ public class PostureSwimming extends PostureFlight {
|
|||
protected double calculateIncline(PlayerEntity player, double motionX, double motionY, double motionZ) {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue