From f1cbd6d22dea76b87c3f625a4f9d11030bff5ef3 Mon Sep 17 00:00:00 2001 From: Brianna Date: Mon, 28 Sep 2020 14:58:18 -0500 Subject: [PATCH] Lets preserve enchants. --- .../java/com/songoda/ultimaterepairing/gui/RepairGui.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/songoda/ultimaterepairing/gui/RepairGui.java b/src/main/java/com/songoda/ultimaterepairing/gui/RepairGui.java index 30ea668..9fd684f 100644 --- a/src/main/java/com/songoda/ultimaterepairing/gui/RepairGui.java +++ b/src/main/java/com/songoda/ultimaterepairing/gui/RepairGui.java @@ -78,18 +78,18 @@ public class RepairGui extends Gui { final String itemName = TextUtils.formatText(ItemUtils.getItemName(item).replace("_", " "), true); if (type == RepairType.ECONOMY) { - item = GuiUtils.createButtonItem(CompatibleMaterial.getMaterial(item), + item = GuiUtils.createButtonItem(item, plugin.getLocale().getMessage("interface.repair.item") .processPlaceholder("ITEM", itemName).getMessage(), plugin.getLocale().getMessage("interface.repair.ecolore").getMessage()); } else if (type == RepairType.ITEM) { - item = GuiUtils.createButtonItem(CompatibleMaterial.getMaterial(item), + item = GuiUtils.createButtonItem(item, plugin.getLocale().getMessage("interface.repair.item") .processPlaceholder("ITEM", itemName).getMessage(), plugin.getLocale().getMessage("interface.repair.itemlore") .processPlaceholder("item", itemName).getMessage()); } else if (type == RepairType.EXPERIENCE) { - item = GuiUtils.createButtonItem(CompatibleMaterial.getMaterial(item), + item = GuiUtils.createButtonItem(item, plugin.getLocale().getMessage("interface.repair.item") .processPlaceholder("ITEM", itemName).getMessage(), plugin.getLocale().getMessage("interface.repair.xplore").getMessage());