There is an error in the code - how can I solve it?
It is saying something about one of my blocks. This block is an array in an array. It is meant to make a two-dimensional array. How can I fix the error? Is there an easier way to make a two-dimensional array?
because EndingHeights is number[][] (two dimensional like you said), when you do “get value at” from a number[][] you get a number[] in return which it is then trying to assign to StartingHightForMakingWorld.
(_ get value at _) “peels” one layer of an array’s type. So number[][] becomes number[], number[] becomes number, etc.
If you want to get a single number, you have to do ((EndingHeights[] get value at (CurrentMapX)) get value at ???)