0ptera / Inventory-Sensor

Factorio mod adding a combinator that reads inventories of wagons, cars, furnaces and more
Other
5 stars 6 forks source link

Add missing on_entity_cloned event #21

Closed harag-on-steam closed 2 years ago

harag-on-steam commented 2 years ago

Inventory sensors loose tracking when cloned via LuaSurface::clone_* because the cloned sensor is only reported via on_entity_cloned which the mod isn't subscribed to.

Space Exploration uses this to move spaceships from origin surface to travel surface and from travel surface to destination surface.

I assert I'm the author of this change and hereby transfer copyright to you.