Thank you for your quick response!
Unfortunately, when I switch sides it gives me an error:
Error while running event Krastorio2Inserters::on_gui_switch_state_changed (ID
160)
Krastorio2Inserters/scripts/inserter.lua:132: attempt to index local ‘dpf' (a nil
value)
stack traceback:
Krastorio2Inserters/scripts/inserter.lua:132: in function ‘change_lane’
Krastorio2Inserters__/scripts/inserter.|ua:88: in function ‘handler’
flib__/gui.lua:177: in function <flib/gui.lua:160>