Fixed a bunch of bugs related to worldgen