Skip to content

Commit

Permalink
Fix weird interaction with moving items
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Apr 25, 2024
1 parent 9f358be commit 6c1f9d4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public boolean mayPickup(@NotNull Player player) {
return coinBag.get(coin).getFirst() > 0;
}

@Override
protected void onSwapCraft(int numItemsCrafted) {
remove(numItemsCrafted);
}

@Override
public @NotNull ItemStack remove(int amount) {
int available = coinBag.get(coin).getFirst();
Expand Down

0 comments on commit 6c1f9d4

Please sign in to comment.