Code: Select all
require "defines"
function on_built(event)
if event.created_entity.name == "rail-chain-signal" then
event.created_entity.destroy()
end
end
script.on_event(defines.events.on_built_entity, on_built)
It doesn't happen without the entity.destroy() call, also It seems like it's only happening with chain signal type entities, even regular signals seem to be fine, but I haven't tested it too deeply.
No other mods were used.
TRK