mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-13 01:07:30 +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.
|
#Autogenerated file. Do not modify.
|
||||||
#Tue Apr 17 17:05:43 EDT 2018
|
#Tue Apr 17 17:15:02 EDT 2018
|
||||||
version=release
|
version=release
|
||||||
androidBuildCode=933
|
androidBuildCode=933
|
||||||
name=Mindustry
|
name=Mindustry
|
||||||
|
@ -66,6 +66,7 @@ public class MapEditorDialog extends Dialog{
|
|||||||
Timers.run(3f, () -> {
|
Timers.run(3f, () -> {
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
tags.put("name", result.nameWithoutExtension());
|
||||||
MapIO.writeMap(result, tags, editor.getMap());
|
MapIO.writeMap(result, tags, editor.getMap());
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
ui.showError(Bundles.format("text.editor.errorimagesave", Strings.parseException(e, false)));
|
ui.showError(Bundles.format("text.editor.errorimagesave", Strings.parseException(e, false)));
|
||||||
@ -96,7 +97,6 @@ public class MapEditorDialog extends Dialog{
|
|||||||
FileHandle result = file;
|
FileHandle result = file;
|
||||||
ui.loadfrag.show();
|
ui.loadfrag.show();
|
||||||
Timers.run(3f, () -> {
|
Timers.run(3f, () -> {
|
||||||
|
|
||||||
try{
|
try{
|
||||||
Pixmaps.write(MapIO.generatePixmap(editor.getMap()), result);
|
Pixmaps.write(MapIO.generatePixmap(editor.getMap()), result);
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
|
@ -65,7 +65,7 @@ public class Maps implements Disposable{
|
|||||||
|
|
||||||
for(FileHandle file : customMapDirectory.list()){
|
for(FileHandle file : customMapDirectory.list()){
|
||||||
try{
|
try{
|
||||||
loadMap(file, true);
|
if(file.extension().toLowerCase().equals(mapExtension)) loadMap(file, true);
|
||||||
}catch (IOException e){
|
}catch (IOException e){
|
||||||
Log.err("Failed to load custom map file '{0}'!", file);
|
Log.err("Failed to load custom map file '{0}'!", file);
|
||||||
Log.err(e);
|
Log.err(e);
|
||||||
|
Reference in New Issue
Block a user