Skip to content

Commit

Permalink
fixed MovingBlocks#2429 Previewing an unsupported world breaks world …
Browse files Browse the repository at this point in the history
…preview for remainder of game session
  • Loading branch information
0shine0 committed Mar 8, 2017
1 parent 25834d6 commit c50001a
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit c50001a

Please sign in to comment.