diff --git a/libLauncher/src/main/java/ru/gravit/launcher/profiles/ClientProfile.java b/libLauncher/src/main/java/ru/gravit/launcher/profiles/ClientProfile.java index 24a03895..488ab996 100644 --- a/libLauncher/src/main/java/ru/gravit/launcher/profiles/ClientProfile.java +++ b/libLauncher/src/main/java/ru/gravit/launcher/profiles/ClientProfile.java @@ -258,6 +258,7 @@ public void unmarkOptional(OptionalFile file) { file.mark = false; if (file.dependenciesCount != null) { for (OptionalFile f : file.dependenciesCount) { + if(f.isPreset) continue; unmarkOptional(f); } file.dependenciesCount.clear(); diff --git a/libLauncher/src/main/java/ru/gravit/launcher/profiles/optional/OptionalFile.java b/libLauncher/src/main/java/ru/gravit/launcher/profiles/optional/OptionalFile.java index 915e2ab2..378c34e9 100644 --- a/libLauncher/src/main/java/ru/gravit/launcher/profiles/optional/OptionalFile.java +++ b/libLauncher/src/main/java/ru/gravit/launcher/profiles/optional/OptionalFile.java @@ -33,6 +33,8 @@ public class OptionalFile { @LauncherAPI public int subTreeLevel = 1; @LauncherAPI + public boolean isPreset; + @LauncherAPI public long permissions = 0L; @LauncherAPI public transient Set dependenciesCount;