Quickfix
orignal mod by SpaceCat-Chan
https://mods.factorio.com/mod/Hazard-Lights
https://github.com/SpaceCat-Chan/Hazard-Lights
A mod that adds lights to the corners of Entities so you don't drive into them at night
[for modders wishing to add integration with their mods]
check line 114 of control.lua
Official Extensions:
Hazard Lights Selection Tool https://mods.factorio.com/mod/Hazard-Lights-Selection-Tool
Hazard Lights Auto Ligths https://mods.factorio.com/mod/Hazard-Lights-Auto-Lights