From ea6befaada3413761d173a83e8b042bb715cba74 Mon Sep 17 00:00:00 2001 From: Giacomello Nathan <0ddlyokoOfficial@gmail.com> Date: Sat, 13 Jun 2020 16:05:06 +0200 Subject: [PATCH] Try to fix Challenge --- .../com/songoda/skyblock/challenge/challenge/Challenge.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/skyblock/challenge/challenge/Challenge.java b/src/main/java/com/songoda/skyblock/challenge/challenge/Challenge.java index 2ccb1a0d..d44267e8 100644 --- a/src/main/java/com/songoda/skyblock/challenge/challenge/Challenge.java +++ b/src/main/java/com/songoda/skyblock/challenge/challenge/Challenge.java @@ -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