The documentation states that it returns an array, but if nothing is being crafted, it returns nil.
https://lua-api.factorio.com/stable/cla ... ting_queue
LuaControl::crafting_queue can be nil if nothing is currently crafting
Re: LuaControl::crafting_queue can be nil if nothing is currently crafting
Thanks for the note, doc updated for the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

