LuaRendering.draw_rectangle() "filled" field marked as required
- _CodeGreen
- Long Handed Inserter
- Posts: 72
- Joined: Sat Mar 05, 2022 11:30 am
- Contact:
LuaRendering.draw_rectangle() "filled" field marked as required
LuaRendering.draw_rectangle() says the "filled" property is required, but I have accidentally omitted it and it still works without.
My Mods | If you can't make it perfect, make it adjustable
Re: LuaRendering.draw_rectangle() "filled" field marked as required
That wasn't quite intended, it was meant to be mandatory. It's interpreting nil as false, which accidentally made it optional. But I don't want to break mods by making it properly required now, so I have instead updated the docs and code for the next version to make it clear that it's optional.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.