mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
Revert "Fix getItemInMainHand behavior breaking /worth (#1053)"
This commit is contained in:
parent
ca28d8aa84
commit
abfec5a60f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user