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

Dont consume charges when not required in plank chopping #35787

Merged
merged 1 commit into from Nov 30, 2019
Merged

Dont consume charges when not required in plank chopping #35787

merged 1 commit into from Nov 30, 2019

Conversation

ghost
Copy link

@ghost ghost commented Nov 30, 2019

Summary

SUMMARY: Bugfixes "Dont consume charges when not required in plank chopping"

Purpose of change

Fixes #35736

Describe the solution

Fixes the debugmsg pop up in some situations, as the code was trying to consume charges for tools that couldnt have charges, this adds a condition to check if its a type that evne has charges before it consumes them.

Describe alternatives you've considered

N/A

Testing

Loaded up save in linked issue, before fix - debugmsg, after fix - no debugmsg

Additional context

N/A

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Items / Item Actions / Item Qualities Items and how they work and interact labels Nov 30, 2019
@ZhilkinSerg ZhilkinSerg merged commit 26b8022 into CleverRaven:master Nov 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Items / Item Actions / Item Qualities Items and how they work and interact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zone Interaction error with sawing planks.
1 participant