Skip to content

Commit

Permalink
🐛 fix(Soulbound Picnic Basket): Fix #185, check for instanceof Picnic…
Browse files Browse the repository at this point in the history
…Basket instead of just the item
  • Loading branch information
ProfElements committed Aug 8, 2023
1 parent 8f03c45 commit 8fced6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private void checkAndConsume(@Nonnull Player p) {
}

for (ItemStack item : p.getInventory().getContents()) {
if (picnicBasket.isItem(item)) {
if (picnicBasket.isItem(item) || SlimefunItem.getByItem(item) instanceof PicnicBasket) {
if (picnicBasket.canUse(p, true)) {
takeFoodFromPicnicBasket(p, item);
} else {
Expand Down

0 comments on commit 8fced6e

Please sign in to comment.