Fix version range check for required mods #4918

This commit is contained in:
mezz committed 2018-05-11 17:58:21 -07:00
1 parent b6f8be6718
commit 33f4acb6b9
1 file changed
+5 -1
@@ -271,7 +271,11 @@ public class Loader
continue;
}
reqList.putAll(mod.getModId(), names.keySet());
ImmutableList<ArtifactVersion> allDeps = ImmutableList.<ArtifactVersion>builder().addAll(mod.getDependants()).addAll(mod.getDependencies()).build();
ImmutableList<ArtifactVersion> allDeps = ImmutableList.<ArtifactVersion>builder()
.addAll(mod.getDependants())
.addAll(mod.getDependencies())
.addAll(mod.getRequirements())
.build();
MissingModsException missingModsException = new MissingModsException(mod.getModId(), mod.getName());
for (ArtifactVersion acceptedVersion : allDeps)
{