`get_blueprint_entity_tags` return type should be optional

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.)
Bilka
Factorio Staff
Factorio Staff
Posts: 3879
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: `get_blueprint_entity_tags` return type should be optional

Post by Bilka »

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

Return to “Resolved Requests”