[FEATURE] Параметр isPreset

This commit is contained in:
Gravit 2019-04-24 13:29:04 +07:00
parent f32844aa15
commit 76691da8c9
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
2 changed files with 3 additions and 0 deletions

View file

@ -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();

View file

@ -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<OptionalFile> dependenciesCount;