Update Inventory Workaround to the latest version

Still bugged in CB: maxAmount of items
This commit is contained in:
snowleo 2012-12-19 22:07:03 +01:00
parent f57b3595ed
commit 2a88a314ce
9 changed files with 36 additions and 452 deletions

View file

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