fixed a bug where level.dat wouldn't show up on file selection

master
Skiphs 2013-08-09 08:13:22 -07:00
parent b683ce924e
commit 5305244a65
1 changed files with 4 additions and 1 deletions

View File

@ -45,7 +45,10 @@ public class SaveLoader {
public static FileFilter getFilter() {
return (new FileFilter() {
public boolean accept(File f) {
return f.isDirectory();
if (f.isDirectory())
return true;
String[] st = f.getName().split("\\/");
return st[st.length - 1].equalsIgnoreCase("level.dat");
}
@Override