mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-29 23:17:59 +02:00
Reset flying with elytra when the player is on the ground
This commit is contained in:
parent
34d428be10
commit
2145bf4115
@ -2223,6 +2223,9 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||||||
|
|
||||||
public void refreshOnGround(boolean onGround) {
|
public void refreshOnGround(boolean onGround) {
|
||||||
this.onGround = onGround;
|
this.onGround = onGround;
|
||||||
|
if(this.onGround && this.isFlyingWithElytra()) {
|
||||||
|
this.setFlyingWithElytra(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user