diff --git a/editor/scripts/WorldMaker b/editor/scripts/WorldMaker index 053233798..e431715c2 100644 --- a/editor/scripts/WorldMaker +++ b/editor/scripts/WorldMaker @@ -35,8 +35,9 @@ boolean updateMap(File mapFile, File pictureFile) { return false; } print("converting " + mapFile + " to " + pictureFile + "."); - map = mapManager.openMapFile(mapFile, false); - if (map == null) { + try { + map = mapManager.openMapFile(mapFile, false); + } catch (IOException ex) { return false; } try {