From e89f1d8a0374f8c184043289c89782ca6298cb72 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Fri, 31 Aug 2012 17:54:10 +0100 Subject: [PATCH] Add missing repair cost check on /repair hand --- .../src/com/earth2me/essentials/commands/Commandrepair.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandrepair.java b/Essentials/src/com/earth2me/essentials/commands/Commandrepair.java index 4fc428910..9cb3577ee 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandrepair.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandrepair.java @@ -41,7 +41,7 @@ public class Commandrepair extends EssentialsCommand } final String itemName = item.getType().toString().toLowerCase(Locale.ENGLISH); - final Trade charge = new Trade("repair-" + itemName.replace('_', '-'), ess); + final Trade charge = new Trade("repair-" + itemName.replace('_', '-'), new Trade("repair-" + item.getTypeId(), new Trade("repair-item", ess), ess), ess); charge.isAffordableFor(user);