fixed Previewing an unsupported world breaks world preview for remainder of game session
@@ -256,8 +256,8 @@ public Boolean get() {
}
};
previewSeed.bindEnabled(worldGeneratorSelected);
- WidgetUtil.trySubscribe(this, "previewSeed", button -> {
PreviewWorldScreen screen = getManager().createScreen(PreviewWorldScreen.ASSET_URI, PreviewWorldScreen.class);
+ WidgetUtil.trySubscribe(this, "previewSeed", button -> {
if (screen != null) {
screen.bindSeed(BindHelper.bindBeanProperty("text", seed, String.class));
try {
