mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 19:46:42 +01:00
Fixed earth ponies being able to stomp whilst flying with elytra and using riptide
This commit is contained in:
parent
04298eefcf
commit
e053539d1b
1 changed files with 3 additions and 1 deletions
|
@ -82,7 +82,9 @@ public class EarthPonyStompAbility implements Ability<Hit> {
|
||||||
@Override
|
@Override
|
||||||
public Optional<Hit> prepare(Pony player) {
|
public Optional<Hit> prepare(Pony player) {
|
||||||
if (player.asEntity().getVelocity().y * player.getPhysics().getGravitySignum() < 0
|
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);
|
thrustDownwards(player);
|
||||||
return Hit.INSTANCE;
|
return Hit.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue