to make directions compatible with the mapgen code
Now working in pure Lua! Some parts of the code are very hacky (e.g. noise) and the way new and old codes have been glued together is sometimes to be rewritten. But at least it works.
Tested, but not linked with the mod, yet.