Underground belt entity.direction incomplete
Posted: Fri Dec 23, 2016 9:55 pm
I tried to copy an underground belt via this code:
But the underground belt is facing the wrong direction!
Here is an example of a belt created via this method, directly to the left of the player. Notice how the underground belt is facing south (transporting north) instead of north (transporting north).
Code: Select all
roboport.surface.create_entity{name="entity-ghost", position=belts.position, inner_name="fast-transport-belt", direction = belts.direction, force=roboport.force}
Here is an example of a belt created via this method, directly to the left of the player. Notice how the underground belt is facing south (transporting north) instead of north (transporting north).