What did you do?
1. Create a modded locomotive "New Locomotive" with the same fast_replaceable_group as the base locomotive. (See attached test mod)2. Start a new game or open the attached save. Place a Locomotive on some track.
3. Pick up a "New Locomotive" item and attempt to place it on top of the Locomotive to upgrade it.
What happened?
4. The New Locomotive placement preview slides continuously across the existing locomotive. It highlights green for exactly one pixel (1/256 tile), and red everywhere else. If you click while it is green, the Locomotive is upgraded to New Locomotive correctly.What did you expect to happen?
I expected the New Locomotive preview to snap to the Locomotive entity from +/-1 tile in the same way that upgrading a Locomotive to a different quality does.It looks like the logic to detect when entities should snap to upgrade only looks at the entity name, not the fast_replaceable_group. This makes it very annoying to do manually.
