mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-09 23:37:51 +07:00
Fixed map file names not being shown
This commit is contained in:
Binary file not shown.
@ -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
|
||||
|
@ -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){
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user