BUG : blueprint returns nil direction
Posted: Sun Jul 16, 2017 11:33 pm
While working on this rails mod, I found that a curved rail that is direction 0 returns an entity with direction=nill
All other directions seem to return their proper number; probably the test in C++ code is like if (!value ) entity.direction=nil; insteaed of if( value == null ) or if( value == 0 ) (which actually might be the same thing
)
Code: Select all
player.cursor_stack.create_blueprint{surface = surface, force = belt.force,area = a}
local old_blueprint = player.cursor_stack.get_blueprint_entities()
