Skip to content

Commit

Permalink
fix: Player::setAllowFlight
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Jun 17, 2024
1 parent b20a9f9 commit a7f9c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endstone_core/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ bool EndstonePlayer::getAllowFlight() const

void EndstonePlayer::setAllowFlight(bool flight)
{
if (!isFlying() && !flight) {
if (isFlying() && !flight) {
getHandle().getAbilities().setAbility(AbilitiesIndex::Flying, false);
}

Expand Down

0 comments on commit a7f9c79

Please sign in to comment.