A few corrections to new game screen
import org.terasology.rendering.nui.itemRendering.StringTextRenderer;
import org.terasology.rendering.nui.layers.mainMenu.savedGames.GameInfo;
import org.terasology.rendering.nui.layers.mainMenu.savedGames.GameProvider;
+import org.terasology.rendering.nui.layers.mainMenu.selectModulesScreen.AdvancedGameSetupScreen;
import org.terasology.rendering.nui.widgets.UIDropdown;
import org.terasology.rendering.nui.widgets.UIDropdownScrollable;
import org.terasology.rendering.nui.widgets.UILabel;
@@ -116,6 +117,7 @@ public Module get() {
@Override
public void set(Module value) {
setSelectedGameplayModule(value);
+ System.out.println(config.getWorldGeneration().getDefaultGenerator());
selected = value;
}
});
@@ -170,11 +172,8 @@ public String get() {
gameManifest.addModule(module.getId(), module.getVersion());
}
- SimpleUri uri = StandardModuleExtension.getDefaultWorldGenerator(gameplay.getSelection());
- if(uri == null) {
- uri = new SimpleUri(DEFAULT_WORLD_GENERATOR);
- }
-
+ SimpleUri uri = config.getWorldGeneration().getDefaultGenerator();
+ System.out.println(uri);
float timeOffset = 0.25f + 0.025f;
WorldInfo worldInfo = new WorldInfo(TerasologyConstants.MAIN_WORLD, "thisisjustrandom69",
(long) (WorldTime.DAY_LENGTH * timeOffset), uri);
