How is renaming train stops in on_created handled?

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2915
Joined: Sat Jun 11, 2016 6:41 am
Contact:

How is renaming train stops in on_created handled?

Post 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?

Post Reply

Return to “Modding discussion”