diff options
author | snowleo <schneeleo@gmail.com> | 2011-11-28 20:28:05 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-11-28 20:28:05 +0100 |
commit | 99211fd4075a1620f6850ce895089997a71cc65f (patch) | |
tree | 7eb203b0c2f6b469298b6b4f5488dfca2ea75f27 | |
parent | 3d839c2b211307c09ef2e856f6b0fbd7b1635419 (diff) | |
parent | 5e24584bf7455a8a7a19470c7114b0b11bea2ba2 (diff) | |
download | Essentials-99211fd4075a1620f6850ce895089997a71cc65f.tar Essentials-99211fd4075a1620f6850ce895089997a71cc65f.tar.gz Essentials-99211fd4075a1620f6850ce895089997a71cc65f.tar.lz Essentials-99211fd4075a1620f6850ce895089997a71cc65f.tar.xz Essentials-99211fd4075a1620f6850ce895089997a71cc65f.zip |
Merge branch 'refs/heads/master' into release
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandsell.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java index 512eeabe3..07338e096 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java @@ -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); |