Fixed some ores not loading in correctly / Conflict check

This commit is contained in:
Anuken
2019-03-12 13:42:20 -04:00
parent 41f734b04d
commit aa69af64fb
2 changed files with 5 additions and 4 deletions

View File

@@ -32,8 +32,7 @@ public class MapsDialog extends FloatingDialog{
Map map = MapIO.readMap(file, true);
String name = map.tags.get("name", file.nameWithoutExtension());
//TODO filename conflict, erasure
Map conflict = world.maps.byName(name);
Map conflict = world.maps.all().find(m -> m.fileName().equals(file.nameWithoutExtension()) || m.name().equals(file.name()));
if(conflict != null && !conflict.custom){
ui.showError(Core.bundle.format("editor.import.exists", name));