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

Bugs that are actually features.
PyroFire
Filter Inserter
Filter Inserter
Posts: 356
Joined: Tue Mar 08, 2016 8:18 am
Contact:

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

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16098
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”