Page 1 of 1

Suggestion: Add LuaEntity: get_all_request_slot()

Posted: Sat Nov 11, 2023 3:39 am
by phidias0303
Instead of looping every slot in Lua, maybe we can have something that doesn't need to.
it can be like {slot: item}, like {1: IronPlate, 2: CopperPlate} ...
So you can use the result to change the set request slot.

Re: Suggestion: Add LuaEntity: get_all_request_slot()

Posted: Sat Nov 11, 2023 10:21 am
by boskid
That already exists under LuaLogisticPoint::filters (read), you just need to obtain LuaLogisticPoint from LuaEntity by using LuaEntity::get_logistic_point (method)

Re: Suggestion: Add LuaEntity: get_all_request_slot()

Posted: Sun Nov 12, 2023 8:27 am
by phidias0303
ok thx