Code: Select all
game.surfaces.nauvis.create_entity{name="straight-rail",position={x=1,y=1},force="player",direction=7}
game.print(#game.surfaces.nauvis.find_entities_filtered{name="straight-rail",position={x=1,y=1}})
game.print(game.surfaces.nauvis.find_entities_filtered{name="straight-rail",position={x=0.9,y=0.9}}[1].position)
I think this is a bug because I expect the position of find{position} results to be the position I searched for, and I expect it to find things created at the position in question.