Fixed map file names not being shown

This commit is contained in:
Anuken
2018-04-17 17:15:43 -04:00
parent 739e636a2c
commit 23dc62dbd2
4 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -1,5 +1,5 @@
#Autogenerated file. Do not modify.
#Tue Apr 17 17:05:43 EDT 2018
#Tue Apr 17 17:15:02 EDT 2018
version=release
androidBuildCode=933
name=Mindustry

View File

@ -66,6 +66,7 @@ public class MapEditorDialog extends Dialog{
Timers.run(3f, () -> {
try{
tags.put("name", result.nameWithoutExtension());
MapIO.writeMap(result, tags, editor.getMap());
}catch (Exception e){
ui.showError(Bundles.format("text.editor.errorimagesave", Strings.parseException(e, false)));
@ -96,7 +97,6 @@ public class MapEditorDialog extends Dialog{
FileHandle result = file;
ui.loadfrag.show();
Timers.run(3f, () -> {
try{
Pixmaps.write(MapIO.generatePixmap(editor.getMap()), result);
}catch (Exception e){

View File

@ -65,7 +65,7 @@ public class Maps implements Disposable{
for(FileHandle file : customMapDirectory.list()){
try{
loadMap(file, true);
if(file.extension().toLowerCase().equals(mapExtension)) loadMap(file, true);
}catch (IOException e){
Log.err("Failed to load custom map file '{0}'!", file);
Log.err(e);