So this is a mistake on my part, yeah? I don't know what it might be. At this stage I'm already passed 'mapgen' function and I'm calling other functions.
However maybe 'mapgen' function is on infinite loop? It's currently looks like this:
- do something
-if conditions match then call function 'mapgen'
Any suggestions how I could stop that if in did it could be on the loop?