mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
use 1.21.5 spigot
This commit is contained in:
parent
e6ff0a5e5f
commit
d67140a403
3 changed files with 5 additions and 5 deletions
|
|
@ -141,10 +141,10 @@ public class EnchantSelectSettingGui extends SettingGuiListConfigGui<CAEnchantme
|
|||
|
||||
meta.setDisplayName("§" + (isIn ? 'a' : 'c') + CasedStringUtil.snakeToUpperSpacedCase(name));
|
||||
if (isIn) {
|
||||
meta.addEnchant(Enchantment.DAMAGE_UNDEAD, 1, true);
|
||||
meta.addEnchant(Enchantment.SMITE, 1, true);
|
||||
meta.setLore(TRUE_LORE);
|
||||
} else {
|
||||
meta.removeEnchant(Enchantment.DAMAGE_UNDEAD);
|
||||
meta.removeEnchant(Enchantment.SMITE);
|
||||
meta.setLore(FALSE_LORE);
|
||||
}
|
||||
meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES, ItemFlag.HIDE_ENCHANTS);
|
||||
|
|
|
|||
|
|
@ -112,10 +112,10 @@ public class GroupSelectSettingGui extends AbstractSettingGui {
|
|||
|
||||
meta.setDisplayName("§" + (isIn ? 'a' : 'c') + CasedStringUtil.snakeToUpperSpacedCase(name));
|
||||
if (isIn) {
|
||||
meta.addEnchant(Enchantment.DAMAGE_UNDEAD, 1, true);
|
||||
meta.addEnchant(Enchantment.SMITE, 1, true);
|
||||
meta.setLore(TRUE_LORE);
|
||||
} else {
|
||||
meta.removeEnchant(Enchantment.DAMAGE_UNDEAD);
|
||||
meta.removeEnchant(Enchantment.SMITE);
|
||||
meta.setLore(FALSE_LORE);
|
||||
}
|
||||
meta.addItemFlags(ItemFlag.values());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue