recently you added
request_slot_count :: uint [R] The number of request slots this entity has.
this function returns 0 in case of entities which do not have/support request slots.
and also
filter_slot_count :: uint [R] The number of filter slots this inserter has.
but this variable triggers an error if it's not an inserter.
It would be nice if it returns also 0 in case of any entities that does not have/support filters, no ?
filter_slot_count error on non-inserter
filter_slot_count error on non-inserter
My mods on the Factorio Mod Portal 

Re: filter_slot_count error on non-inserter
filter_slot_count is specific to the inserter entity - nothing else in the game ever has a non-0 filter slot count.
Also set-filter and get-filter on lua-entity only work with the inserter.
Request filters are something else completely which is why it returns 0 since multiple entities can have them.
Also set-filter and get-filter on lua-entity only work with the inserter.
Request filters are something else completely which is why it returns 0 since multiple entities can have them.
If you want to get ahold of me I'm almost always on Discord.