diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandworth.java b/Essentials/src/com/earth2me/essentials/commands/Commandworth.java index 7ed8598ad..667c085ef 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandworth.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandworth.java @@ -7,6 +7,7 @@ import org.bukkit.Server; import org.bukkit.inventory.ItemStack; import java.math.BigDecimal; +import java.util.ArrayList; import java.util.List; import java.util.Locale; @@ -23,7 +24,12 @@ public class Commandworth extends EssentialsCommand { BigDecimal totalWorth = BigDecimal.ZERO; String type = ""; - List is = ess.getItemDb().getMatching(user, args); + List tmp = ess.getItemDb().getMatching(user, args); + List is = new ArrayList<>(tmp.size()); + for (ItemStack stack : tmp) { + is.add(stack.clone()); + } + int count = 0; boolean isBulk = is.size() > 1;