Skip to content

Commit

Permalink
quick patch to check isSellAllowed
Browse files Browse the repository at this point in the history
Took 56 seconds
  • Loading branch information
kiranhart committed Jul 19, 2024
1 parent f299b3d commit 60cefb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private void attemptSell(@NonNull final Player player) {

items.forEach(item -> {
final ItemShopContent shopContent = itemShopContents.stream().filter(content -> content.getItem().isSimilar(item)).findFirst().orElse(null);
if (shopContent == null) {
if (shopContent == null || !shopContent.isAllowSell()) {
PlayerUtil.giveItem(player, item);
return;
}
Expand Down

0 comments on commit 60cefb1

Please sign in to comment.