Try to fix Challenge

This commit is contained in:
Giacomello Nathan 2020-06-13 16:05:06 +02:00 committed by Brianna
parent 00dc6c6ee7
commit ea6befaada

View File

@ -150,7 +150,8 @@ public class Challenge {
public boolean has(Player p, Object obj) {
// Check if player has specific item in his inventory
ItemStack is = (ItemStack) obj;
return p.getInventory().contains(is.getType(), is.getAmount());
return p.getInventory().containsAtLeast(new ItemStack(is.getType()), is.getAmount());
// return p.getInventory().contains(is.getType(), is.getAmount());
}
@Override