Skip to content

Commit

Permalink
-Fix speed spiral
Browse files Browse the repository at this point in the history
  • Loading branch information
mak8427 committed Feb 1, 2025
1 parent fcb3cef commit 30e3502
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/main/java/fox/spiteful/avaritia/items/ItemArmorInfinity.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,10 @@ public void updatePlayerAbilityStatus(LivingUpdateEvent event) {
}

// +50% speed up and down when flying

if (flying) {
if (player.motionY > 0) {
player.motionY *= 1.5;
} else if (player.motionY < 0) {
player.motionY *= 1.5;
}
if (player.motionY > 0 && player.motionY < 2) {
player.motionY *= 1.5f;
} else if (player.motionY < 0 && player.motionY > -2) {
player.motionY *= 1.5f;
}
}
} else {
Expand Down

0 comments on commit 30e3502

Please sign in to comment.