+ update SimpleVersionControl

This commit is contained in:
坏黑
2019-09-18 22:15:55 +08:00
parent b0623575ab
commit 60131c4f91
10 changed files with 200 additions and 25 deletions

View File

@@ -173,7 +173,7 @@ public class Items {
public static boolean hasItem(Inventory inventory, Matcher matcher, int amount) {
int checkAmount = amount;
for (org.bukkit.inventory.ItemStack itemStack : inventory.getContents()) {
for (ItemStack itemStack : inventory.getContents()) {
if (!isNull(itemStack) && matcher.match(itemStack)) {
checkAmount -= itemStack.getAmount();
if (checkAmount <= 0) {