https://github.com/Afforess/Factorio-Stdlib/blob/78b02eadaf626cec539306f741aea968c0d2f967/stdlib/event/trains.lua#L107 Deleted trains must be intercepted `if (id ~= derived_id and derived_id ~= nil) then`
Factorio-Stdlib/stdlib/event/trains.lua
Line 107 in 78b02ea
Deleted trains must be intercepted
if (id ~= derived_id and derived_id ~= nil) then