Skip to content

Commit

Permalink
Merge PR #2815 by @0shine0 - world preview hardening.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cervator committed Mar 14, 2017
2 parents 1efe1dc + a5b1c8e commit 1336be5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1336be5

Please sign in to comment.