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.
Suggestion: Add LuaEntity: get_all_request_slot()
-
- Manual Inserter
- Posts: 4
- Joined: Tue Apr 14, 2020 8:15 pm
- Contact:
Re: Suggestion: Add LuaEntity: get_all_request_slot()
That already exists under LuaLogisticPoint::filters (read), you just need to obtain LuaLogisticPoint from LuaEntity by using LuaEntity::get_logistic_point (method)
-
- Manual Inserter
- Posts: 4
- Joined: Tue Apr 14, 2020 8:15 pm
- Contact: