mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38: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> */
|
/** Constant <code>DCKFileFilter</code> */
|
||||||
private static FilenameFilter DCKFileFilter = new FilenameFilter() {
|
public static final FilenameFilter DCKFileFilter = new FilenameFilter() {
|
||||||
public boolean accept(File dir, String name) {
|
public boolean accept(File dir, String name) {
|
||||||
return name.endsWith(".dck");
|
return name.endsWith(".dck");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ public class QuestEventManager {
|
|||||||
|
|
||||||
DeckManager manager = new DeckManager(file);
|
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) {
|
for(File f : allFiles) {
|
||||||
contents = FileUtil.readFile(f);
|
contents = FileUtil.readFile(f);
|
||||||
|
|||||||
Reference in New Issue
Block a user