Page 1 of 1

[0.17.64] Bug with entity cloning order and on_entity_cloned event not being called

Posted: Sat Aug 10, 2019 1:09 am
by PyroFire
https://mods.factorio.com/mod/Factoriss ... 000d283949

If you run surface.clone_entities{entities={e1, e2, e3}, ...}, and the clone events are in order e1, e2, e3, but the on_entity_cloned event of e2 deletes e1 and e3, then clones of e1, e2, e3 will all be created, but there will be no on_entity_cloned event for e3.

Re: [0.17.64] Bug with entity cloning order and on_entity_cloned event not being called

Posted: Sat Aug 10, 2019 2:32 am
by Rseding91
Thanks for the report however that's working exactly as it's supposed to. If you delete the source or destination entities then it won't fire the event because the event is meaningless without both the source and destination.