The following two methods:
https://lua-api.factorio.com/latest/cla ... ntity_tags
https://lua-api.factorio.com/latest/cla ... ntity_tags
are documented as returning non-optional `Tags`. However, they can both return `nil` if the entity in question has no tags, so their return type should be `Tags?` instead.
(I am filing this as a doc issue, but if the function is always supposed to be returning a `Tags` then this may be an actual bug instead.)
`get_blueprint_entity_tags` return type should be optional
-
The_LORD_thy_GOD
- Inserter

- Posts: 22
- Joined: Sun Nov 10, 2024 5:23 pm
- Contact:
Re: `get_blueprint_entity_tags` return type should be optional
Thanks for the note, fixed the docs for the next release.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
