Add missing repair cost check on /repair hand

This commit is contained in:
KHobbits 2012-08-31 17:54:10 +01:00
parent ff461be45d
commit e89f1d8a03

View File

@ -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);