Skip to content

Commit

Permalink
Removing unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroksl committed Oct 27, 2024
1 parent 3383325 commit 6e98c15
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,6 @@ public static void LivingFallDamage(LivingFallEvent event) {
if (stack.getItem() instanceof QuantumArmorBase item) {
if (item.extractAEPower(stack, 10, Actionable.SIMULATE) > 0) {
event.setDistance(0.0f);
return;
}
if (item.isUpgradeEnabledAndPowered(stack, UpgradeType.JUMP_HEIGHT, player.level())) {
int upgrade = stack.getOrDefault(AAEComponents.UPGRADE_VALUE.get(UpgradeType.JUMP_HEIGHT), 0);
if (player.isSprinting()) upgrade += 2;
event.setDistance(event.getDistance() - upgrade);
item.consumeEnergy(stack, UpgradeType.JUMP_HEIGHT);
}
}
}
Expand Down

0 comments on commit 6e98c15

Please sign in to comment.