Don't check disabled mods

This commit is contained in:
MEEPofFaith
2024-04-18 13:44:52 -07:00
parent eff7d75712
commit a51c4e6909

View File

@@ -658,7 +658,7 @@ public class Mods implements Loadable{
cont.image().width(300f).colspan(2).pad(2).height(4f).color(Color.scarlet); cont.image().width(300f).colspan(2).pad(2).height(4f).color(Color.scarlet);
cont.row(); cont.row();
cont.pane(p -> { cont.pane(p -> {
mods.each(LoadedMod::hasUnmetDependencies, mod -> { mods.each(mod -> mod.shouldBeEnabled() && mod.hasUnmetDependencies(), mod -> {
p.add(mod.meta.displayName).wrap().growX().left().labelAlign(Align.left); p.add(mod.meta.displayName).wrap().growX().left().labelAlign(Align.left);
p.row(); p.row();
p.table(d -> { p.table(d -> {
@@ -677,7 +677,7 @@ public class Mods implements Loadable{
cont.button("@mod.dependencies.download", () -> { cont.button("@mod.dependencies.download", () -> {
hide(); hide();
Seq<String> toImport = new Seq<>(); Seq<String> toImport = new Seq<>();
mods.each(LoadedMod::hasUnmetDependencies, mod -> { mods.each(mod -> mod.shouldBeEnabled() && mod.hasUnmetDependencies(), mod -> {
mod.missingDependencies.each(toImport::addUnique); mod.missingDependencies.each(toImport::addUnique);
}); });
Seq<String> remaining = toImport.copy(); Seq<String> remaining = toImport.copy();