From 4c2d0d21134d8b8f7a5019d6eaf899f8b82b79f6 Mon Sep 17 00:00:00 2001 From: granny Date: Sun, 3 Nov 2024 21:43:05 -0800 Subject: [PATCH] fix compilation error for bukkit servers --- bukkit/src/main/java/net/pl3x/map/bukkit/BukkitPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/net/pl3x/map/bukkit/BukkitPlayer.java b/bukkit/src/main/java/net/pl3x/map/bukkit/BukkitPlayer.java index 190251e28..344e6b824 100644 --- a/bukkit/src/main/java/net/pl3x/map/bukkit/BukkitPlayer.java +++ b/bukkit/src/main/java/net/pl3x/map/bukkit/BukkitPlayer.java @@ -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()); }