Neo Hazard Lights

by Mernom

Hazard lights, reimagined using entity based technology. Based on Hazard lights by SpaceCat-Chan.

Utilities
1 year, 6 months ago
1.1
426

g Bug with event "script_raised_built"

1 year, 7 months ago

In "on_built_entity", you overwrite the "entity"-key from the event with the "created_entity"-key. A "script_raised_built"-event has no "created_entity"-key, just an "entity"-key. This fixes it:

if event.entity == nil then
    event.entity = event.created_entity
end
1 year, 6 months ago

Sorry it took me so long. I was busy with a bunch of things.
Should be fixed now, along with a while bunch of new features.

1 year, 6 months ago

The mod Neo Hazard Lights (0.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event neo-hazard-lights::on_configuration_changed
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__neo-hazard-lights
/control.lua:229: in function 'verify_lamps_data'
neo-hazard-lights/control.lua:618: in function <neo-hazard-lights/control.lua:618>

1 year, 6 months ago

In future, please open a new thread if it's a different issue.

New response