Page 1 of 1

How is renaming train stops in on_created handled?

Posted: Sun Jun 17, 2018 5:34 am
by Optera
I just got a rather interesting bug report: https://github.com/Yousei9/Logistic-Tra ... k/pull/122

Now I'm a bit confused in what order events happen here within the same tick.

SensibleStationNames renames within on_built_entity.
Does this cause Factorio to fire on_renamed within the same tick instead of one tick later?
wouldn't this mean mods handling on_created before SensibleStationNames would see the entity with the old name and those after it will see the renamed AND the on_renamed event?