Resetting player flying speed after changing gamemode (#710)

This commit is contained in:
Aleksey Demchenkov 2022-02-22 23:02:26 +03:00 committed by GitHub
parent dab6ec6000
commit f9367ef4a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1252,6 +1252,10 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
this.flying = false;
}
}
// Make sure that the player is in the PLAY state and synchronize their flight speed.
if (isActive()) {
refreshAbilities();
}
}
/**