Fix another bug in /sell

This commit is contained in:
snowleo 2011-11-28 22:41:26 +01:00
parent 8c06b13a77
commit 91cdff955a

View file

@ -155,7 +155,7 @@ public class Commandsell extends EssentialsCommand
//TODO: Prices for Enchantments
final ItemStack ris = is.clone();
is.setAmount(amount);
ris.setAmount(amount);
InventoryWorkaround.removeItem(user.getInventory(), true, ris);
user.updateInventory();
Trade.log("Command", "Sell", "Item", user.getName(), new Trade(ris, ess), user.getName(), new Trade(worth * amount, ess), user.getLocation(), ess);