Skip to content

Commit

Permalink
fix compilation error for bukkit servers
Browse files Browse the repository at this point in the history
  • Loading branch information
granny committed Nov 4, 2024
1 parent d4fae3e commit 4c2d0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bukkit/src/main/java/net/pl3x/map/bukkit/BukkitPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public int getHealth() {

@Override
public int getArmorPoints() {
AttributeInstance attr = getPlayer().getAttribute(Attribute.GENERIC_ARMOR);
AttributeInstance attr = getPlayer().getAttribute(Attribute.ARMOR);
return attr == null ? 0 : (int) Math.round(attr.getValue());
}

Expand Down

0 comments on commit 4c2d0d2

Please sign in to comment.