summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-08-31 17:54:10 +0100
committerKHobbits <rob@khobbits.co.uk>2012-08-31 17:54:10 +0100
commitb87e38e24cbf80130fecfa16c57ebda33ca90b84 (patch)
treec59a34157b7a13da9eddb0073039509734b5b3c1
parent789aa7bddbb29659a50915b2c89363f723ce5fc4 (diff)
downloadEssentials-b87e38e24cbf80130fecfa16c57ebda33ca90b84.tar
Essentials-b87e38e24cbf80130fecfa16c57ebda33ca90b84.tar.gz
Essentials-b87e38e24cbf80130fecfa16c57ebda33ca90b84.tar.lz
Essentials-b87e38e24cbf80130fecfa16c57ebda33ca90b84.tar.xz
Essentials-b87e38e24cbf80130fecfa16c57ebda33ca90b84.zip
Add missing repair cost check on /repair hand
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandrepair.java2
1 files changed, 1 insertions, 1 deletions
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);