Skip to content

Commit

Permalink
Back to Max health
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jan 1, 2025
1 parent 07969c0 commit 8e93aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/world/bentobox/bentobox/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ public static void runCommands(User user, String ownerName, @NonNull List<String
public static void resetHealth(Player player) {
try {
// Paper
double maxHealth = player.getAttribute(Attribute.GENERIC_MAX_HEALTH).getBaseValue();
double maxHealth = player.getAttribute(Attribute.MAX_HEALTH).getBaseValue();
player.setHealth(maxHealth);
} catch (Exception e) {
// Spigot
Expand Down

0 comments on commit 8e93aca

Please sign in to comment.