Fixed #11373
This commit is contained in:
@@ -403,7 +403,7 @@ public class MapEditorDialog extends Dialog implements Disposable{
|
|||||||
infoDialog.show();
|
infoDialog.show();
|
||||||
Core.app.post(() -> ui.showErrorMessage("@editor.save.noname"));
|
Core.app.post(() -> ui.showErrorMessage("@editor.save.noname"));
|
||||||
}else{
|
}else{
|
||||||
Map map = maps.all().find(m -> m.name().equals(name));
|
Map map = maps.all().find(m -> m.name().equalsIgnoreCase(name));
|
||||||
if(map != null && !map.custom && !map.workshop){
|
if(map != null && !map.custom && !map.workshop){
|
||||||
handleSaveBuiltin(map);
|
handleSaveBuiltin(map);
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ public class EditorMapsDialog extends MapListDialog{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Map conflict = maps.all().find(m -> m.name().equals(name));
|
Map conflict = maps.all().find(m -> m.name().equalsIgnoreCase(name));
|
||||||
|
|
||||||
if(conflict != null && !conflict.custom){
|
if(conflict != null && !conflict.custom){
|
||||||
ui.showInfo(Core.bundle.format("editor.import.exists", name));
|
ui.showInfo(Core.bundle.format("editor.import.exists", name));
|
||||||
|
|||||||
Reference in New Issue
Block a user