Optimizations of worldgen and some other stuff