mirror of
https://github.com/rockyhawk64/CommandPanels.git
synced 2025-11-18 07:14:17 +01:00
fix to pass as true when amount is 0 for [item] tag
This commit is contained in:
parent
038b911e05
commit
492ae188a1
@ -104,6 +104,9 @@ public class ItemTag implements RequirementTagResolver {
|
||||
}
|
||||
|
||||
private boolean hasMatchingItems(Context ctx, Player player, ParsedItemRequirement req) {
|
||||
// If zero items are required, always pass
|
||||
if (req.amount <= 0) return true;
|
||||
|
||||
Inventory inv = req.source.equals("panel")
|
||||
? player.getOpenInventory().getTopInventory()
|
||||
: player.getInventory();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user