Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ end)

table.insert(list_events.on_entity_destroyed,function(event)
local destroyed_item_data=destroyed_railpoles[event.unit_number]
if not destroyed_item_data then
return
end
local ghosts=destroyed_item_data.surface.find_entities_filtered{position=destroyed_item_data.position,name="entity-ghost",ghost_name=railpole}
if #ghosts>0 then
local old_ghost=ghosts[1]
Expand Down