Only try to back up the mod files if they exist...

This commit is contained in:
GJ 2012-05-27 10:23:13 -04:00
parent 6eb0159ea1
commit 3699d26e5d

View File

@ -48,12 +48,15 @@ public class ZipLibrary {
//Create the Source List, and add directories/etc to the file. //Create the Source List, and add directories/etc to the file.
List<File> sources = new ArrayList<File>(); List<File> sources = new ArrayList<File>();
sources.add(FlatFileDirectory); sources.add(FlatFileDirectory);
sources.add(ModFileDirectory);
sources.add(UsersFile); sources.add(UsersFile);
sources.add(ConfigFile); sources.add(ConfigFile);
sources.add(TreasuresFile); sources.add(TreasuresFile);
sources.add(Leaderboards); sources.add(Leaderboards);
if (ModFileDirectory.exists()) {
sources.add(ModFileDirectory);
}
//Actually do something //Actually do something
System.out.println("Backing up your mcMMO Configuration... "); System.out.println("Backing up your mcMMO Configuration... ");