No bellyslides underwater
Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com> Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
1de74138ac
commit
36aa9cd7fe
@ -319,7 +319,7 @@ public class Player extends PhysicsObject{
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (a==Action.FALL&&(state==State.JUMP||state==State.FALLING)) {
|
if (a==Action.FALL&&(state==State.JUMP||state==State.FALLING)&&!isUnderwater()) {
|
||||||
state=State.BELLYSLIDE;
|
state=State.BELLYSLIDE;
|
||||||
y_velocity=y_velocity_limit;
|
y_velocity=y_velocity_limit;
|
||||||
x_velocity=60*(facing_direction?1:-1);
|
x_velocity=60*(facing_direction?1:-1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user