From f76c6442081cae90d4a7809c880c1651af8e5ac9 Mon Sep 17 00:00:00 2001 From: Matyrobbrt Date: Sun, 17 Dec 2023 00:02:57 +0200 Subject: [PATCH] Provide the dependency reason to required dependencies too --- loader/src/main/java/net/neoforged/fml/loading/ModSorter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/src/main/java/net/neoforged/fml/loading/ModSorter.java b/loader/src/main/java/net/neoforged/fml/loading/ModSorter.java index fa7ded0f7..2c789b58d 100644 --- a/loader/src/main/java/net/neoforged/fml/loading/ModSorter.java +++ b/loader/src/main/java/net/neoforged/fml/loading/ModSorter.java @@ -215,7 +215,7 @@ public List 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(),