Skip to content

Commit

Permalink
Flubbed on the version requirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl committed Oct 28, 2024
1 parent 52c530a commit 5f0c94c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private void evaluateHealth(Player player) {

@SuppressWarnings("deprecation")
private Attribute getAttribute() {
if (MinecraftVersion.CURRENT_VERSION.isNewerThan(MinecraftVersion.MINECRAFT_1_21_3))
if (MinecraftVersion.CURRENT_VERSION.isNewerThanOrEquals(MinecraftVersion.MINECRAFT_1_21_3))
return Attribute.MAX_HEALTH;
else
return Attribute.valueOf("GENERIC_MAX_HEALTH");
Expand Down

0 comments on commit 5f0c94c

Please sign in to comment.