Page 1 of 1

[0.12.26] API: set_request_slot documentation incorrect

Posted: Sun Mar 13, 2016 2:55 am
by Supercheese
In Factorio's lua modding API, the documentation for set_request_slot states:

Code: Select all

set_request_slot(slot, request)

Set a logistic requester slot.
Parameters
slot :: uint: The slot index.
request :: LuaItemStack: What to request.
Note: Useable only on entities that have requester slots.
However, testing reveals that the order of the arguments is backwards; the proper order is: request,slot

Re: [0.12.26] API: set_request_slot documentation incorrect

Posted: Sun Mar 13, 2016 4:06 pm
by Oxyd
You are right. :) Fixed in the 0.12.27 documentation, thanks.