Fix worth display bug

This commit is contained in:
KHobbits 2013-07-14 12:09:49 +01:00
parent 8009c1539a
commit 0d2dea41e3
3 changed files with 11 additions and 8 deletions

View file

@ -40,10 +40,11 @@ public class Commandsell extends EssentialsCommand
if (stack.getAmount() > 0)
{
totalWorth = totalWorth.add(sellItem(user, stack, args, isBulk));
stack = stack.clone();
count++;
for (ItemStack zeroStack : is)
{
if (!zeroStack.equals(stack) && zeroStack.isSimilar(stack))
if (zeroStack.isSimilar(stack))
{
zeroStack.setAmount(0);
}