Skip to content

Commit

Permalink
Merge branch '2.x' into ajmaacc
Browse files Browse the repository at this point in the history
  • Loading branch information
AjMaacc committed Apr 5, 2024
2 parents 3f9c22b + 71ca7ff commit 8fc65fc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ protected boolean onSignInteract(final ISign sign, final User player, final Stri
if (player.getBase().getHealth() == 0) {
throw new SignException("healDead");
}
final double amount = player.getBase().getMaxHealth();
final Trade charge = getTrade(sign, 1, ess);
charge.isAffordableFor(player);
player.getBase().setHealth(20);
player.getBase().setHealth(amount);
player.getBase().setFoodLevel(20);
player.getBase().setFireTicks(0);
player.sendTl("youAreHealed");
Expand Down

0 comments on commit 8fc65fc

Please sign in to comment.