should have excluded non-quest files

This commit is contained in:
Maxmtg
2011-09-17 15:08:47 +00:00
parent 89e24134a6
commit 436af6d3e3
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ public class DeckManager {
};
/** Constant <code>DCKFileFilter</code> */
private static FilenameFilter DCKFileFilter = new FilenameFilter() {
public static final FilenameFilter DCKFileFilter = new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.endsWith(".dck");
}

View File

@@ -46,7 +46,7 @@ public class QuestEventManager {
DeckManager manager = new DeckManager(file);
File[] allFiles = ForgeProps.getFile(NewConstants.QUEST.DECKS).listFiles();
File[] allFiles = ForgeProps.getFile(NewConstants.QUEST.DECKS).listFiles(DeckManager.DCKFileFilter);
for(File f : allFiles) {
contents = FileUtil.readFile(f);