Hi!
Thanks for the mod.
Is it possible to add support for single lane "lane splitter"? There is a mod that brings them back to the game "https://mods.factorio.com/mod/lane-balancers"
As in just as a quick shortcut to set the filter and then wanted lane is set by another flip?
Or some more involved algorithm that determines from inserters further up in the lane?
I don't quite understand what you're asking :(
Most likely because of the translation.
The game has a hidden lane divider that is installed on one lane (that mod just allows you to use it), and now your mod works with it (that is, it allows you to block one side), but only if you manually select the filter, but it does not respond to pressing the button.
By trial and error I changed line #146, and the button started working:
if splitter == nil or not splitter.valid or not ((splitter.type == "splitter" or "lane-splitter") or (splitter.type == "entity-ghost" and (splitter.ghost_type == "splitter" or "lane-splitter"))) then return end