summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-11-28 22:41:26 +0100
committersnowleo <schneeleo@gmail.com>2011-11-28 22:41:26 +0100
commit91cdff955ab8a8af0ff52474ea5de9584d6377c7 (patch)
tree72cd659a99dc2ada2f1590c9e6bbcef09dac7d57
parent8c06b13a77891fecf7f178a8e00c8fdd9960d67f (diff)
downloadEssentials-91cdff955ab8a8af0ff52474ea5de9584d6377c7.tar
Essentials-91cdff955ab8a8af0ff52474ea5de9584d6377c7.tar.gz
Essentials-91cdff955ab8a8af0ff52474ea5de9584d6377c7.tar.lz
Essentials-91cdff955ab8a8af0ff52474ea5de9584d6377c7.tar.xz
Essentials-91cdff955ab8a8af0ff52474ea5de9584d6377c7.zip
Fix another bug in /sell
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandsell.java2
1 files changed, 1 insertions, 1 deletions
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);