Revert "Fix getItemInMainHand behavior breaking /worth (#1053)"

This commit is contained in:
vemacs 2017-01-17 21:45:29 -06:00
parent ca28d8aa84
commit abfec5a60f

View File

@ -7,7 +7,6 @@ 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;
@ -24,12 +23,7 @@ public class Commandworth extends EssentialsCommand {
BigDecimal totalWorth = BigDecimal.ZERO;
String type = "";
List<ItemStack> tmp = ess.getItemDb().getMatching(user, args);
List<ItemStack> is = new ArrayList<>(tmp.size());
for (ItemStack stack : tmp) {
is.add(stack.clone());
}
List<ItemStack> is = ess.getItemDb().getMatching(user, args);
int count = 0;
boolean isBulk = is.size() > 1;