diff --git a/engine/src/main/java/org/terasology/rendering/nui/layers/mainMenu/CreateGameScreen.java b/engine/src/main/java/org/terasology/rendering/nui/layers/mainMenu/CreateGameScreen.java index 09f0bc23ff5..0774a68bc01 100644 --- a/engine/src/main/java/org/terasology/rendering/nui/layers/mainMenu/CreateGameScreen.java +++ b/engine/src/main/java/org/terasology/rendering/nui/layers/mainMenu/CreateGameScreen.java @@ -256,8 +256,8 @@ public Boolean get() { } }; previewSeed.bindEnabled(worldGeneratorSelected); + PreviewWorldScreen screen = getManager().createScreen(PreviewWorldScreen.ASSET_URI, PreviewWorldScreen.class); WidgetUtil.trySubscribe(this, "previewSeed", button -> { - PreviewWorldScreen screen = getManager().createScreen(PreviewWorldScreen.ASSET_URI, PreviewWorldScreen.class); if (screen != null) { screen.bindSeed(BindHelper.bindBeanProperty("text", seed, String.class)); try { diff --git a/engine/src/main/java/org/terasology/rendering/nui/layers/mainMenu/SelectGameScreen.java b/engine/src/main/java/org/terasology/rendering/nui/layers/mainMenu/SelectGameScreen.java index 437cca6e307..f7404c57131 100644 --- a/engine/src/main/java/org/terasology/rendering/nui/layers/mainMenu/SelectGameScreen.java +++ b/engine/src/main/java/org/terasology/rendering/nui/layers/mainMenu/SelectGameScreen.java @@ -84,8 +84,8 @@ public String get() { refreshList(gameList); gameList.subscribe((widget, item) -> loadGame(item)); + CreateGameScreen screen = getManager().createScreen(CreateGameScreen.ASSET_URI, CreateGameScreen.class); WidgetUtil.trySubscribe(this, "create", button -> { - CreateGameScreen screen = getManager().createScreen(CreateGameScreen.ASSET_URI, CreateGameScreen.class); screen.setLoadingAsServer(loadingAsServer); triggerForwardAnimation(screen); }); diff --git a/engine/src/main/java/org/terasology/world/generation/BaseFacetedWorldGenerator.java b/engine/src/main/java/org/terasology/world/generation/BaseFacetedWorldGenerator.java index 171d8f1ffd7..8f6c1bfb101 100644 --- a/engine/src/main/java/org/terasology/world/generation/BaseFacetedWorldGenerator.java +++ b/engine/src/main/java/org/terasology/world/generation/BaseFacetedWorldGenerator.java @@ -25,7 +25,7 @@ public abstract class BaseFacetedWorldGenerator implements WorldGenerator { private final SimpleUri uri; private String worldSeed; - private WorldBuilder worldBuilder; + protected WorldBuilder worldBuilder; private World world; private FacetedWorldConfigurator configurator;