- LuaEntity::infinity_container_filters
- LuaEntity::remove_unfiltered_items
- LuaEntity::get_infinity_container_filter()
- LuaEntity::set_infinity_container_filter()
- LuaEntity::get_infinity_pipe_filter()
- LuaEntity::set_infinity_pipe_filter()
Document that infinity_container_filters works on ghosts
Document that infinity_container_filters works on ghosts
I discovered that ghost infinity chest/wagon/pipe filters can be interacted with just like ghost logistic chests. The following entries should have the note "Also works for ghosts", similar to LuaEntity::get_inventory_filter().
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Re: Document that infinity_container_filters works on ghosts
Indeed, that's why the page says "Most functions on LuaEntity also work when the entity is contained in a ghost.".
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Document that infinity_container_filters works on ghosts
For the next version I've made clearer what makes get_inventory_filter (and similar) special in regards to ghosts.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Document that infinity_container_filters works on ghosts
Ah, thank you! I didn't notice that that part of the preamble is part of the API definition, not merely explanation.Bilka wrote: Tue Jul 22, 2025 3:32 pm Indeed, that's why the page says "Most functions on LuaEntity also work when the entity is contained in a ghost.".
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.