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

This subforum contains all the issues which we already resolved.
Post Reply
blueblue
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Tue Apr 11, 2017 7:39 pm
Contact:

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

Post 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.
unique_2 on discord and mod portal

betrok
Fast Inserter
Fast Inserter
Posts: 101
Joined: Wed Feb 28, 2018 12:08 pm
Contact:

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

Post by betrok »

Try to check orientation instead.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post by posila »

Thanks for the report.
Fixed for next release.

Post Reply

Return to “Resolved Problems and Bugs”