Skip to content

Commit

Permalink
Provide the dependency reason to required dependencies too
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt committed Dec 16, 2023
1 parent 4b8ac82 commit f76c644
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public List<EarlyLoadingException.ExceptionData> buildErrorMessages() {
versionResolution.stream()
.map(mv -> new EarlyLoadingException.ExceptionData(mv.getType() == IModInfo.DependencyType.REQUIRED ? "fml.modloading.missingdependency" : "fml.modloading.missingdependency.optional",
mv.getOwner(), mv.getModId(), mv.getOwner().getModId(), mv.getVersionRange(),
modVersions.getOrDefault(mv.getModId(), new DefaultArtifactVersion("null")))),
modVersions.getOrDefault(mv.getModId(), new DefaultArtifactVersion("null")), mv.getReason())),
incompatibilities.stream()
.map(mv -> new EarlyLoadingException.ExceptionData("fml.modloading.incompatiblemod",
mv.getOwner(), mv.getModId(), mv.getOwner().getModId(), mv.getVersionRange(),
Expand Down

0 comments on commit f76c644

Please sign in to comment.