Skip to content

Commit

Permalink
Removed a pointless warning and made turned some warnings into actual…
Browse files Browse the repository at this point in the history
… warnings
  • Loading branch information
evilfactory committed Oct 25, 2023
1 parent aaa4a91 commit 9a7ddd2
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -941,15 +941,11 @@ private static bool TryBuildDependenciesMap(ImmutableList<ContentPackage> packag
}
else
{
ModUtils.Logging.PrintError($"Warning! The ContentPackage {package.Name} lists a dependency of (STEAMID: {dependency.SteamWorkshopId}, PackageName: {dependency.PackageName}) but it could not be found in the to-be-loaded CSharp packages list!");
ModUtils.Logging.PrintWarning($"Warning: The ContentPackage {package.Name} lists a dependency of (STEAMID: {dependency.SteamWorkshopId}, PackageName: {dependency.PackageName}) but it could not be found in the to-be-loaded CSharp packages list!");
reliableMap = false;
}
}
}
else
{
ModUtils.Logging.PrintMessage($"Warning! Could not retrieve RunConfig for ContentPackage {package.Name}!");
}
}

return reliableMap;
Expand Down Expand Up @@ -1039,7 +1035,7 @@ PackageProcRet ProcessPackage(ContentPackage packageToProcess, IEnumerable<Conte
if (!ContentPackageManager.EnabledPackages.All.Contains(dependency))
{
// present warning but allow loading anyways, better to let the user just disable the package if it's really an issue.
ModUtils.Logging.PrintError(
ModUtils.Logging.PrintWarning(
$"Warning: the ContentPackage of {packageToProcess.Name} requires the Dependency {dependency.Name} but this package wasn't found in the enabled mods list!");
}

Expand Down

0 comments on commit 9a7ddd2

Please sign in to comment.