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
commitf31672d92d3a5ce2a1b611c6618dc4a7b8618bdb (patch)
treedef0f6d2b708b051a58362e8f503d51ac1813393
parent5bf32ec0ac33531c6a0d19b8298775ce435c827c (diff)
downloadEssentials-f31672d92d3a5ce2a1b611c6618dc4a7b8618bdb.tar
Essentials-f31672d92d3a5ce2a1b611c6618dc4a7b8618bdb.tar.gz
Essentials-f31672d92d3a5ce2a1b611c6618dc4a7b8618bdb.tar.lz
Essentials-f31672d92d3a5ce2a1b611c6618dc4a7b8618bdb.tar.xz
Essentials-f31672d92d3a5ce2a1b611c6618dc4a7b8618bdb.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);