Skip to content
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

Fix: Decrement cached berry inventory count when using a berry #476

Merged

Conversation

mrnitrate
Copy link
Contributor

When using a berry the cached inventory was not being updated with the new decremented value.

@JoshYuen
Copy link
Contributor

Should probably check to make sure the UseBerry function actually successfully used a berry before decrementing.

@mad-it
Copy link
Contributor

mad-it commented Jul 25, 2016

@JoshYuen That is indeed cleaner, but its cached for 30 seconds. So if it was not used correctly, it would only be invalid for 30 sec. But good remark.
Plus this is only for logging seeing as Berry,Count is a local variable.

@NecronomiconCoding NecronomiconCoding merged commit f52359b into NecronomiconCoding:master Jul 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants