mirror of
https://github.com/essentials/Essentials.git
synced 2025-02-25 08:52:40 +01:00
Fix bug in /sell command
This commit is contained in:
parent
e3cd1404ef
commit
0dae97d7f4
@ -154,7 +154,8 @@ public class Commandsell extends EssentialsCommand
|
||||
}
|
||||
|
||||
//TODO: Prices for Enchantments
|
||||
final ItemStack ris = new ItemStack(is.getType(), amount, is.getDurability());
|
||||
final ItemStack ris = is.clone();
|
||||
is.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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user