[0.16.32] Direction of rail-remnant always reads as 0
Posted: Thu Apr 05, 2018 12:42 am
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.
I assume this is a bug because I can create the rail remnants with different facing directions using the direction key.
Code: Select all
/c for _, ent in pairs(game.player.surface.find_entities_filtered{type="rail-remnants"}) do game.print(ent.direction) end