Skip to content

Commit

Permalink
fix: mark elytra state changes as synced when player is on ground
Browse files Browse the repository at this point in the history
Signed-off-by: Octol1ttle <[email protected]>
  • Loading branch information
Octol1ttle committed Feb 21, 2024
1 parent 6527d25 commit bd9a900
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public ElytraStateController(AirDataComputer data) {

@Override
public void tick() {
if (syncedState != data.isFlying) {
if (syncedState != data.isFlying || data.player.isOnGround()) {
changesPending = false;
}
if (changesPending || !data.canAutomationsActivate(false)) {
Expand Down

0 comments on commit bd9a900

Please sign in to comment.