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
commite89f1d8a0374f8c184043289c89782ca6298cb72 (patch)
tree0e94abbfe50da732ad91d92b2470c4714b43ff2e
parentff461be45deed5fd640fb199f5abc88d6dd1da4f (diff)
downloadEssentials-e89f1d8a0374f8c184043289c89782ca6298cb72.tar
Essentials-e89f1d8a0374f8c184043289c89782ca6298cb72.tar.gz
Essentials-e89f1d8a0374f8c184043289c89782ca6298cb72.tar.lz
Essentials-e89f1d8a0374f8c184043289c89782ca6298cb72.tar.xz
Essentials-e89f1d8a0374f8c184043289c89782ca6298cb72.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);