From df39276c2a7bd215d0d0f09f2d8360d8f0baa78a Mon Sep 17 00:00:00 2001 From: Gravit Date: Thu, 28 Feb 2019 16:26:45 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=98=D0=B7=D0=B1=D1=8B=D1=82=D0=BE?= =?UTF-8?q?=D1=87=D0=BD=D1=8B=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=B2=20unmarkOptional?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/ru/gravit/launcher/profiles/ClientProfile.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 8de9245a..cf1f2b82 100644 --- a/libLauncher/src/main/java/ru/gravit/launcher/profiles/ClientProfile.java +++ b/libLauncher/src/main/java/ru/gravit/launcher/profiles/ClientProfile.java @@ -266,13 +266,14 @@ public void unmarkOptional(OptionalFile file) { if (file.dependencies != null) { for (OptionalFile f : file.dependencies) { if (!f.mark) continue; - if (f.dependenciesCount == null) { + unmarkOptional(f); + /*if (f.dependenciesCount == null) { unmarkOptional(f); } else if (f.dependenciesCount.size() <= 1) { f.dependenciesCount.clear(); f.dependenciesCount = null; unmarkOptional(f); - } + }*/ } } }