-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Coins are not removed from inventory when 0 #331
Comments
@hallowatcher is this item specific or does this count for every stackable item? |
Good question, I don't know what else deducts from a stackable item other than arrows when using ranged maybe? I know this works when banking notes |
Runes, arrows, noted items, purple sweets, seeds, feathers, arrow shafts, nails, bolt tips |
We can add a check in the inventory/bank's add method that ensures the item being added isn't 0. I experienced this same bug today. |
Does it actually add 0 of an item? Just wondering since I havn't looked at it yet. But yes this should be added either way. Feel free to create a PR if you think you've got time! |
No worries at all, and yes. It's already fixed on my end. I can definitely make a PR. 👍 |
@src52 any news on the PR? If not you can supply the code on the discord or here and I'll add it myself. No need to do double the work 😅 |
Describe the bug
When spending all coins in your inventory, it should be checked if you have 0. If so, remove the item.
To Reproduce
Expected behavior
Coins are removed from the inventory
Screenshots
The text was updated successfully, but these errors were encountered: