Page 1 of 1

Get all personal logistic slots

Posted: Sun Mar 24, 2024 8:20 pm
by SupplyDepoo
LuaControl::get_personal_logistic_slot(slot_index) takes an index to get a single personal logistic slot. Is there a way to get all of the personal logistic filters without guessing slot indices? (since there can be arbitrary gaps due to deleted filters)

Re: Get all personal logistic slots

Posted: Sun Mar 24, 2024 8:32 pm
by SupplyDepoo
I found how to get the highest index at least: LuaEntity::request_slot_count