LuaRendering.draw_rectangle() "filled" field marked as required

Post Reply
User avatar
_CodeGreen
Long Handed Inserter
Long Handed Inserter
Posts: 62
Joined: Sat Mar 05, 2022 11:30 am
Contact:

LuaRendering.draw_rectangle() "filled" field marked as required

Post by _CodeGreen »

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

Bilka
Factorio Staff
Factorio Staff
Posts: 3165
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LuaRendering.draw_rectangle() "filled" field marked as required

Post by Bilka »

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.

Post Reply

Return to “Resolved Requests”