`get_blueprint_entity_tags` return type should be optional

Place to report issues and suggest improvements to the API documentation.
The_LORD_thy_GOD
Inserter
Inserter
Posts: 22
Joined: Sun Nov 10, 2024 5:23 pm
Contact:

`get_blueprint_entity_tags` return type should be optional

Post by The_LORD_thy_GOD »

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.)
Post Reply

Return to “Documentation Improvement Requests”