diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 558e5ba085..fda8e0fb9e 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -380,7 +380,7 @@ editor.unsaved = [scarlet]You have unsaved changes![]\nAre you sure you want to editor.resizemap = Resize Map editor.mapname = Map Name: editor.overwrite = [accent]Warning!\nThis overwrites an existing map. -editor.overwrite.confirm = [scarlet]Warning![] A map with this name already exists. Are you sure you want to overwrite it? +editor.overwrite.confirm = [scarlet]Warning![] A map with this name already exists. Are you sure you want to overwrite it?\n"[accent]{0}[]" editor.exists = A map with this name already exists. editor.selectmap = Select a map to load: diff --git a/core/src/mindustry/ui/dialogs/MapsDialog.java b/core/src/mindustry/ui/dialogs/MapsDialog.java index 2f99b9a06b..9324734064 100644 --- a/core/src/mindustry/ui/dialogs/MapsDialog.java +++ b/core/src/mindustry/ui/dialogs/MapsDialog.java @@ -98,7 +98,7 @@ public class MapsDialog extends FloatingDialog{ if(conflict != null && !conflict.custom){ ui.showInfo(Core.bundle.format("editor.import.exists", name)); }else if(conflict != null){ - ui.showConfirm("$confirm", "$editor.overwrite.confirm", () -> { + ui.showConfirm("$confirm", Core.bundle.format("editor.overwrite.confirm", map.name()), () -> { maps.tryCatchMapError(() -> { maps.removeMap(conflict); maps.importMap(map.file);