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 creature alcohol in ban-cooking.lua #905

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

Droseran
Copy link
Contributor

The creature ID is currently nil due to being an uninitialized variable, causing ban-cooking to error if a creature alcohol has the [EDIBLE_COOKED] token. This replaces the uninitialized variable with the one containing the creature ID.

The creature ID is currently NIL due to being an uninitialized variable, causing ban-cooking to error if a creature alcohol has the [EDIBLE_COOKED] token. This replaces the uninitialized variable with the one containing the creature ID.
Copy link
Member

@myk002 myk002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please add this fix to changelog.txt too
https://github.com/DFHack/scripts/blob/master/changelog.txt#L33

Also, in a separate PR, please add yourself to the DFHack authors list in https://github.com/DFHack/dfhack/blob/develop/docs/about/Authors.rst

Added ban-cooking fix to changelog
@Droseran
Copy link
Contributor Author

Alright, those are done, thanks!

@myk002 myk002 merged commit e8327aa into DFHack:master Nov 29, 2023
10 checks passed
@Droseran Droseran deleted the Ban-cooking-creature-alcohol-fix branch November 29, 2023 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants