mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-22 21:43:41 +00:00
Fix worth display bug
This commit is contained in:
parent
8009c1539a
commit
0d2dea41e3
3 changed files with 11 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue