Page 1 of 1

[boskid][2.0.67] LuaSplitterControlBehavior does not report type

Posted: Mon Sep 22, 2025 11:09 pm
by StoneHead
LuaSplitterControlBehavior does not report type, as the other controlbehaviors do
Docs says it should, https://lua-api.factorio.com/latest/cla ... avior.html

Have relevant mod installed, connect wire to splitter, click it:
Error while running event FilterHelper::on_gui_opened (ID 101)
LuaSplitterControlBehavior doesn't contain key type.


Relevant code:

Code: Select all

function FilterHelper.add_items_circuit(entity, items)
    if entity.get_control_behavior() then
        local control = entity.get_control_behavior()
        if control and (
            control.type == defines.control_behavior.type.generic_on_off
                or control.type == defines.control_behavior.type.inserter
        ) then
From https://mods.factorio.com/mod/FilterHelper (not my mod, but this looked like a basegame bug)

Re: [boskid][2.0.67] LuaSplitterControlBehavior does not report type

Posted: Mon Sep 22, 2025 11:21 pm
by boskid
Thanks for the report. Issue is now fixed for 2.0.68.