[1.0.0] util.moveposition only works with array-like positions
Posted: Mon Sep 07, 2020 1:38 am
https://github.com/wube/factorio-data/b ... #L114-L131
This function only works with positions that look like {5,1}, not the kind that look like {x=5,y=1} which come from the API.
I've written a version that honors both types of positions, and also supports the diagonal defined directions, if that would be helpful.
This function only works with positions that look like {5,1}, not the kind that look like {x=5,y=1} which come from the API.
I've written a version that honors both types of positions, and also supports the diagonal defined directions, if that would be helpful.