Skip to content

Commit b1dd033

Browse files
committed
fix armor tag
1 parent 26ffc92 commit b1dd033

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/altherneum/fr/menu/serverSelector/serverSelectorItems.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static ItemStack ItemStackCreatif(lang.languages lang, Player player) thr
7777

7878
Plugin plugin = Bukkit.getPluginManager().getPlugin("plugin");
7979
NamespacedKey key = new NamespacedKey(plugin, "AttributeHider");
80-
meta.addAttributeModifier(Attribute.GENERIC_ARMOR,
80+
meta.addAttributeModifier(Attribute.ARMOR,
8181
new AttributeModifier(key, 0.0, Operation.ADD_NUMBER, EquipmentSlotGroup.ANY));
8282

8383
meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);
@@ -187,7 +187,7 @@ public static ItemStack ItemStackSurvie(lang.languages lang, Player player) thro
187187

188188
Plugin plugin = Bukkit.getPluginManager().getPlugin("plugin");
189189
NamespacedKey key = new NamespacedKey(plugin, "AttributeHider");
190-
meta.addAttributeModifier(Attribute.GENERIC_ARMOR,
190+
meta.addAttributeModifier(Attribute.ARMOR,
191191
new AttributeModifier(key, 0.0, Operation.ADD_NUMBER, EquipmentSlotGroup.ANY));
192192

193193
meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);
@@ -225,7 +225,7 @@ public static ItemStack ItemStackOPPrison(lang.languages lang, Player player) th
225225

226226
Plugin plugin = Bukkit.getPluginManager().getPlugin("plugin");
227227
NamespacedKey key = new NamespacedKey(plugin, "AttributeHider");
228-
meta.addAttributeModifier(Attribute.GENERIC_ARMOR,
228+
meta.addAttributeModifier(Attribute.ARMOR,
229229
new AttributeModifier(key, 0.0, Operation.ADD_NUMBER, EquipmentSlotGroup.ANY));
230230

231231
meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);

0 commit comments

Comments
 (0)