Page 1 of 1

[0.16.32] Direction of rail-remnant always reads as 0

Posted: Thu Apr 05, 2018 12:42 am
by blueblue
I am reading the direction of rail-remnants and it comes out zero no matter which direction the remnants are facing. For example the following command will only print 0 on the campaign level new-hope-2 which contains all sorts of rail remnants.

Code: Select all

/c for _, ent in pairs(game.player.surface.find_entities_filtered{type="rail-remnants"}) do game.print(ent.direction) end
I assume this is a bug because I can create the rail remnants with different facing directions using the direction key.

Re: [0.16.32] Direction of rail-remnant always reads as 0

Posted: Thu Apr 05, 2018 2:11 am
by betrok
Try to check orientation instead.

Re: [0.16.32] Direction of rail-remnant always reads as 0

Posted: Thu Apr 05, 2018 11:04 am
by posila
Thanks for the report.
Fixed for next release.