From 91cdff955ab8a8af0ff52474ea5de9584d6377c7 Mon Sep 17 00:00:00 2001 From: snowleo Date: Mon, 28 Nov 2011 22:41:26 +0100 Subject: Fix another bug in /sell --- Essentials/src/com/earth2me/essentials/commands/Commandsell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java index 07338e096..554bb4a2e 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java @@ -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); -- cgit v1.2.3