Reset fall damage when holding shift or space with wings (#85)

Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
MeegooandMartin Robertz authored and GitHub committed 2024-10-20 11:41:35 +02:00
1 parent c450204272
commit 7ec71bdcc9
2 files changed
+3 -3

No files matched your search

@@ -534,6 +534,7 @@ public class ItemInfusedQuantumChestplate extends ItemArmorElectric implements I
if (isJumping && !player.onGround && player.motionY < 0) {
player.motionY *= f1;
player.fallDistance = 0;
}
if (player.isInWater() && !player.capabilities.isCreativeMode) {
@@ -555,9 +556,6 @@ public class ItemInfusedQuantumChestplate extends ItemArmorElectric implements I
if (player.isSneaking() && !player.onGround && player.motionY < 0) {
player.motionY *= 0.6;
}
if (player.fallDistance > 0.0F) {
player.fallDistance = 0;
}
}
@@ -107,6 +107,7 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
if (isJumping && !player.onGround && player.motionY < 0) {
player.motionY *= f1;
player.fallDistance = 0;
}
if (player.isInWater() && !player.capabilities.isCreativeMode) {
@@ -124,6 +125,7 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
if (player.isSneaking() && !player.onGround && player.motionY < 0) {
player.motionY *= 0.6;
player.fallDistance = 0;
}
}