diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-08-31 17:54:10 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-08-31 17:54:10 +0100 |
commit | e89f1d8a0374f8c184043289c89782ca6298cb72 (patch) | |
tree | 0e94abbfe50da732ad91d92b2470c4714b43ff2e | |
parent | ff461be45deed5fd640fb199f5abc88d6dd1da4f (diff) | |
download | Essentials-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.java | 2 |
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); |