Skip to content

Commit

Permalink
Also check health attribute modifier UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
Archy-X committed Sep 20, 2024
1 parent c1f88c2 commit 5265805
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,9 @@ private void setHealth(Player player, User user) {
applyScaling(player);
}

@SuppressWarnings("deprecation")
private boolean isSkillsHealthModifier(AttributeModifier am) {
if (am.getName().equals("skillsHealth")) {
if (am.getName().equals("skillsHealth") || am.getUniqueId().equals(ATTRIBUTE_ID)) {
return true;
}
if (VersionUtils.isAtLeastVersion(21)) {
Expand Down

0 comments on commit 5265805

Please sign in to comment.