Editor<->world data merging

This commit is contained in:
Anuken
2019-05-06 17:03:53 -04:00
parent 51f9ad5a2c
commit 3035d569cc
13 changed files with 108 additions and 160 deletions

View File

@@ -24,7 +24,7 @@ public class MapsDialog extends FloatingDialog{
buttons.addImageTextButton("$editor.importmap", "icon-add", 14 * 2, () -> {
Platform.instance.showFileChooser("$editor.importmap", "Map File", file -> {
try{
Map map = MapIO.readMap(file, true);
Map map = MapIO.createMap(file, true);
String name = map.tags.get("name");
if(name == null){
ui.showError("$editor.errorname");