Document that EntityPrototype.remove_decoratives coerces the boolean values true / false to "true" / "false" respectively.
Additionally since apparently a lot of these coercion cases have been removed in 1.2/2.0/younameit removing this case aswell might be good.
Alternatively change the type to be a union of "automatic" or bool instead of "automatic" or "true" or "false".
Feel free to move this thread to the appropriate forum of course.
EntityPrototype.remove_decoratives bool coercion
- BrainGamer_
- Long Handed Inserter
- Posts: 93
- Joined: Sun Nov 14, 2021 9:52 pm
- Contact:
Re: EntityPrototype.remove_decoratives bool coercion
I can confirm it is removed in 2.0 as part of the generic prototype-construction-does-not-auto-coerce.
If you want to get ahold of me I'm almost always on Discord.
Re: EntityPrototype.remove_decoratives bool coercion
Thank you for noting this here, added for the next doc release, including a deprecation notice.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.