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

api: default_vitals: Fix typo that led to early bailout #31

Closed
wants to merge 1 commit into from

Conversation

somechris
Copy link

If stand_node was present, the first guard in default_vitals bailed out.

This was seemingly unexpected and might be a relict from the refactoring in 59602c9. There, a not got seemingly lost (from line ~1260 in mob_meta.lua) and was not brought over properly to api.lua.

We fix the guard to bail out only if at least one of stand_pos or stand_node are missing. Noww, default_vitals actually does its work again.

Fixes ElCeejo/animalia#99
Fixes ElCeejo/animalia#100
Fixes ElCeejo/animalia#78

If `stand_node` was present, the first guard in `default_vitals`
bailed out.

This was seemingly unexpected and might be a relict from the
refactoring in 59602c9. There, a `not` got seemingly lost (from
line ~1260 in mob_meta.lua) and was not brought over properly to
api.lua.

We fix the guard to bail out only if at least one of `stand_pos`
or `stand_node` are missing. Noww, default_vitals actually does
its work again.

Fixes ElCeejo/animalia#99
Fixes ElCeejo/animalia#100
Fixes ElCeejo/animalia#78
@somechris somechris closed this by deleting the head repository Jan 17, 2025
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.

Animals do not take fire damage Cow and other animals do not take fall damage Animals are Lava proof
1 participant