Skip to content

Commit

Permalink
-Add flying check
Browse files Browse the repository at this point in the history
  • Loading branch information
mak8427 committed Feb 3, 2025
1 parent 30e3502 commit d3152e0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,13 @@ public void updatePlayerAbilityStatus(LivingUpdateEvent event) {
}

// +50% speed up and down when flying
if(flying){
if (player.motionY > 0 && player.motionY < 2) {
player.motionY *= 1.5f;
} else if (player.motionY < 0 && player.motionY > -2) {
player.motionY *= 1.5f;
}
}
}
} else {
playersWithFoot.remove(key);
Expand Down

0 comments on commit d3152e0

Please sign in to comment.