Code: Select all
game.player.surface.create_entity({name="curved-rail", position={0,0}, direction=0})
Code: Select all
game.player.surface.find_entity("curved-rail", {0,0})
I verified that the rail coordinates stayed the same after creation, no snapping or anything. With other rail types it works.
Interestingly if i use the coordinates {1,2} or {1,3} it finds the curved rail, which is quite weird.
Is there some sort of intentional rule behind this coordinate magic (as with diagonal rail in my other bug report) or is this a bug?