Page 1 of 1

Document that infinity_container_filters works on ghosts

Posted: Mon Jul 21, 2025 12:45 am
by robot256
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().
  • 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()

Re: Document that infinity_container_filters works on ghosts

Posted: Tue Jul 22, 2025 3:32 pm
by Bilka
Indeed, that's why the page says "Most functions on LuaEntity also work when the entity is contained in a ghost.".

Re: Document that infinity_container_filters works on ghosts

Posted: Tue Jul 22, 2025 3:56 pm
by Bilka
For the next version I've made clearer what makes get_inventory_filter (and similar) special in regards to ghosts.

Re: Document that infinity_container_filters works on ghosts

Posted: Tue Jul 22, 2025 6:21 pm
by robot256
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.".
Ah, thank you! I didn't notice that that part of the preamble is part of the API definition, not merely explanation.