Lets preserve enchants.

This commit is contained in:
Brianna 2020-09-28 14:58:18 -05:00
parent 96352498cd
commit f1cbd6d22d

View File

@ -78,18 +78,18 @@ public class RepairGui extends Gui {
final String itemName = TextUtils.formatText(ItemUtils.getItemName(item).replace("_", " "), true); final String itemName = TextUtils.formatText(ItemUtils.getItemName(item).replace("_", " "), true);
if (type == RepairType.ECONOMY) { if (type == RepairType.ECONOMY) {
item = GuiUtils.createButtonItem(CompatibleMaterial.getMaterial(item), item = GuiUtils.createButtonItem(item,
plugin.getLocale().getMessage("interface.repair.item") plugin.getLocale().getMessage("interface.repair.item")
.processPlaceholder("ITEM", itemName).getMessage(), .processPlaceholder("ITEM", itemName).getMessage(),
plugin.getLocale().getMessage("interface.repair.ecolore").getMessage()); plugin.getLocale().getMessage("interface.repair.ecolore").getMessage());
} else if (type == RepairType.ITEM) { } else if (type == RepairType.ITEM) {
item = GuiUtils.createButtonItem(CompatibleMaterial.getMaterial(item), item = GuiUtils.createButtonItem(item,
plugin.getLocale().getMessage("interface.repair.item") plugin.getLocale().getMessage("interface.repair.item")
.processPlaceholder("ITEM", itemName).getMessage(), .processPlaceholder("ITEM", itemName).getMessage(),
plugin.getLocale().getMessage("interface.repair.itemlore") plugin.getLocale().getMessage("interface.repair.itemlore")
.processPlaceholder("item", itemName).getMessage()); .processPlaceholder("item", itemName).getMessage());
} else if (type == RepairType.EXPERIENCE) { } else if (type == RepairType.EXPERIENCE) {
item = GuiUtils.createButtonItem(CompatibleMaterial.getMaterial(item), item = GuiUtils.createButtonItem(item,
plugin.getLocale().getMessage("interface.repair.item") plugin.getLocale().getMessage("interface.repair.item")
.processPlaceholder("ITEM", itemName).getMessage(), .processPlaceholder("ITEM", itemName).getMessage(),
plugin.getLocale().getMessage("interface.repair.xplore").getMessage()); plugin.getLocale().getMessage("interface.repair.xplore").getMessage());