diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/base/profiles/optional/OptionalFile.java b/LauncherAPI/src/main/java/pro/gravit/launcher/base/profiles/optional/OptionalFile.java index bf8e261c..d16a13a8 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/base/profiles/optional/OptionalFile.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/base/profiles/optional/OptionalFile.java @@ -6,6 +6,7 @@ import java.util.List; import java.util.Objects; +import java.util.Set; public class OptionalFile implements ProfileFeatureAPI.OptionalMod { @LauncherNetworkAPI @@ -72,6 +73,11 @@ public boolean isVisible() { return visible; } + @Override + public Set getDependencies() { + return Set.of(dependencies); + } + public boolean isMark() { return mark; } diff --git a/LauncherCore/src/main/java/pro/gravit/launcher/core/api/features/ProfileFeatureAPI.java b/LauncherCore/src/main/java/pro/gravit/launcher/core/api/features/ProfileFeatureAPI.java index afd541bf..ddf7d032 100644 --- a/LauncherCore/src/main/java/pro/gravit/launcher/core/api/features/ProfileFeatureAPI.java +++ b/LauncherCore/src/main/java/pro/gravit/launcher/core/api/features/ProfileFeatureAPI.java @@ -4,6 +4,7 @@ import java.util.List; import java.util.Map; +import java.util.Set; import java.util.UUID; import java.util.concurrent.CompletableFuture; @@ -37,5 +38,6 @@ interface OptionalMod { String getDescription(); String getCategory(); boolean isVisible(); + Set getDependencies(); } }