[WorldGen] Fixed an out of bounds array issue when changing Position functions.