Saving a map from the map editor screen no longer changes the screen

This commit is contained in:
Yair Morgenstern
2020-04-23 23:03:29 +03:00
parent f51c3b7b1e
commit 33ee29bbb2

View File

@ -54,7 +54,8 @@ class MapEditorMenuPopup(mapEditorScreen: MapEditorScreen): Popup(mapEditorScree
thread ( name = "SaveMap" ) {
try {
MapSaver.saveMap(mapEditorScreen.mapName, mapEditorScreen.tileMap)
UncivGame.Current.setWorldScreen()
close()
ResponsePopup("Map saved", mapEditorScreen) // todo - add this text to translations
} catch (ex: Exception) {
ex.printStackTrace()
Gdx.app.postRunnable {