Instead of saying the game name is empty generates a game name
@@ -154,8 +154,7 @@ public String get() {
WidgetUtil.trySubscribe(this, "play", button -> {
if (gameName.getText().isEmpty()) {
universeWrapper.setGameName(GameProvider.getNextGameName());
- getManager().pushScreen(MessagePopup.ASSET_URI, MessagePopup.class).setMessage("Error", "Game name cannot be empty");
- } else {
+ }
universeWrapper.setGameName(gameName.getText());
GameManifest gameManifest = GameManifestProvider.createGameManifest(universeWrapper, moduleManager, config);
if (gameManifest != null) {
@@ -164,7 +163,6 @@ public String get() {
MessagePopup errorPopup = getManager().createScreen(MessagePopup.ASSET_URI, MessagePopup.class);
errorPopup.setMessage("Error", "Can't create new game!");
}
- }
});
WidgetUtil.trySubscribe(this, "close", button -> {
