fixed a bug where level.dat wouldn't show up on file selection
parent
b683ce924e
commit
5305244a65
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue