The result is that there is no way to add a new index to a deconstruction planner without using ::entity_filters to write the entire array of existing filters, plus adding any new indexes.
::set_entity_filter (and ::set_tile_filter) should be usable with arbitrary indexes to extend the existing filter count to that index without modifying existing filters.
Code: Select all
/c stack = game.create_inventory(1)[1]
/c stack.set_stack{name="deconstruction-planner", count=1}
/c stack.set_entity_filter(1, "transport-belt")
Code: Select all
/c stack.entity_filters = {"pipe"}
/c stack.set_entity_filter(1, "transport-belt")

