mirror of
https://github.com/songoda/UltimateRepairing.git
synced 2024-11-29 14:06:30 +01:00
Lets preserve enchants.
This commit is contained in:
parent
96352498cd
commit
f1cbd6d22d
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user