From f5c3bb48f643f089f6bb3857a6398bb71a1f91b2 Mon Sep 17 00:00:00 2001 From: Albert Pham Date: Sat, 22 Feb 2014 18:18:20 -0800 Subject: [PATCH] Skip folders starting with . when building the client files --- .../com/skcraft/launcher/builder/ClientFileCollector.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/skcraft/launcher/builder/ClientFileCollector.java b/src/main/java/com/skcraft/launcher/builder/ClientFileCollector.java index db1b220..c2f6fd4 100644 --- a/src/main/java/com/skcraft/launcher/builder/ClientFileCollector.java +++ b/src/main/java/com/skcraft/launcher/builder/ClientFileCollector.java @@ -71,7 +71,9 @@ public class ClientFileCollector extends DirectoryWalker { } public static DirectoryBehavior getDirectoryBehavior(@NonNull String name) { - if (name.equals("_OPTIONAL")) { + if (name.startsWith(".")) { + return DirectoryBehavior.SKIP; + } else if (name.equals("_OPTIONAL")) { return DirectoryBehavior.IGNORE; } else if (name.equals("_SERVER")) { return DirectoryBehavior.SKIP;