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 liquid consumption in crafting #29532

Merged
merged 1 commit into from
Apr 13, 2019

Conversation

ifreund
Copy link
Contributor

@ifreund ifreund commented Apr 13, 2019

Summary

Summary: Bugfixes "Fix liquid consumption in crafting."

Purpose of change

Fixes #29525

Describe the solution

Because of some poor code I wrote a long time ago, this bug popped up as an indirect result of my changes in #29309. This makes sure that container contents are properly filtered and consumed with use_charges().

Describe alternatives you've considered

Letting everyone continue to enjoy infinite liquids for a little longer.

 - count_by_charges contents were getting skipped
 - this caused consumption of liquids in containers to fail
@ifreund ifreund added Crafting / Construction / Recipes Includes: Uncrafting / Disassembling [C++] Changes (can be) made in C++. Previously named `Code` Items / Item Actions / Item Qualities Items and how they work and interact <Bugfix> This is a fix for a bug (or closes open issue) labels Apr 13, 2019
@ZhilkinSerg ZhilkinSerg merged commit 17f1504 into CleverRaven:master Apr 13, 2019
@ifreund ifreund deleted the liquid-consumption branch April 13, 2019 19:18
@nornagon
Copy link
Contributor

This also fixed liquid consumption when using a washboard, FYI :)

@ifreund
Copy link
Contributor Author

ifreund commented Apr 13, 2019

Cool. Yeah, use_charges() is definitely not exclusive to crafting, that's just where people were complaining about the bug.

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` Crafting / Construction / Recipes Includes: Uncrafting / Disassembling 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.

Water in container is not used up for crafting
3 participants