mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
should have excluded non-quest files
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user