mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-27 20:56:05 +01:00
Try to fix Challenge
This commit is contained in:
parent
00dc6c6ee7
commit
ea6befaada
@ -150,7 +150,8 @@ public class Challenge {
|
|||||||
public boolean has(Player p, Object obj) {
|
public boolean has(Player p, Object obj) {
|
||||||
// Check if player has specific item in his inventory
|
// Check if player has specific item in his inventory
|
||||||
ItemStack is = (ItemStack) obj;
|
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
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user