From 30e350201cbef815e74f1bf523ea402811fe299a Mon Sep 17 00:00:00 2001 From: Davide Date: Sat, 1 Feb 2025 23:57:34 +0100 Subject: [PATCH] -Fix speed spiral --- .../spiteful/avaritia/items/ItemArmorInfinity.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/fox/spiteful/avaritia/items/ItemArmorInfinity.java b/src/main/java/fox/spiteful/avaritia/items/ItemArmorInfinity.java index b93610f6..9cf2b7f1 100644 --- a/src/main/java/fox/spiteful/avaritia/items/ItemArmorInfinity.java +++ b/src/main/java/fox/spiteful/avaritia/items/ItemArmorInfinity.java @@ -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 {