mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-24 06:23:59 +00:00
Update Inventory Workaround to the latest version
Still bugged in CB: maxAmount of items
This commit is contained in:
parent
f57b3595ed
commit
2a88a314ce
9 changed files with 36 additions and 452 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue