From 3699d26e5d64b521c57f9f73e953ef8cac6d0cd2 Mon Sep 17 00:00:00 2001 From: GJ Date: Sun, 27 May 2012 10:23:13 -0400 Subject: [PATCH] Only try to back up the mod files if they exist... --- .../java/net/shatteredlands/shatt/backup/ZipLibrary.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/shatteredlands/shatt/backup/ZipLibrary.java b/src/main/java/net/shatteredlands/shatt/backup/ZipLibrary.java index 7cc98d929..dbcdbaf72 100644 --- a/src/main/java/net/shatteredlands/shatt/backup/ZipLibrary.java +++ b/src/main/java/net/shatteredlands/shatt/backup/ZipLibrary.java @@ -48,12 +48,15 @@ public class ZipLibrary { //Create the Source List, and add directories/etc to the file. List sources = new ArrayList(); sources.add(FlatFileDirectory); - sources.add(ModFileDirectory); sources.add(UsersFile); sources.add(ConfigFile); sources.add(TreasuresFile); sources.add(Leaderboards); + if (ModFileDirectory.exists()) { + sources.add(ModFileDirectory); + } + //Actually do something System.out.println("Backing up your mcMMO Configuration... ");