Fixed earth ponies being able to stomp whilst flying with elytra and using riptide

This commit is contained in:
Sollace 2024-05-17 19:28:52 +01:00
parent 04298eefcf
commit e053539d1b
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -82,7 +82,9 @@ public class EarthPonyStompAbility implements Ability<Hit> {
@Override
public Optional<Hit> prepare(Pony player) {
if (player.asEntity().getVelocity().y * player.getPhysics().getGravitySignum() < 0
&& !player.asEntity().getAbilities().flying) {
&& !player.asEntity().getAbilities().flying
&& !player.asEntity().isFallFlying()
&& !player.asEntity().isUsingRiptide()) {
thrustDownwards(player);
return Hit.INSTANCE;
}