@@ -738,17 +738,17 @@ private void load() {
738738 return ;
739739 }
740740 setupPaths ();
741- if (tryLoadingExistingFile ()) {
742- return ;
743- }
744741 for (val repo : localMavenRepositories ) {
745- if (tryDownloadFromMaven (repo )) {
742+ if (tryDownloadFromMaven (repo , true )) {
746743 return ;
747744 }
748745 }
746+ if (tryLoadingExistingFile ()) {
747+ return ;
748+ }
749749 validateDownloadsAllowed ();
750750 for (var repo : remoteMavenRepositories ) {
751- if (tryDownloadFromMaven (repo )) {
751+ if (tryDownloadFromMaven (repo , false )) {
752752 return ;
753753 }
754754 }
@@ -868,7 +868,7 @@ private void validateDownloadsAllowed() {
868868 }
869869
870870 private static final Object mutex = new Object ();
871- private boolean tryDownloadFromMaven (String repo ) {
871+ private boolean tryDownloadFromMaven (String repo , boolean local ) {
872872 synchronized (mutex ) {
873873 try {
874874 if (!repo .endsWith ("/" )) {
@@ -918,9 +918,11 @@ private boolean tryDownloadFromMaven(String repo) {
918918 case OK :
919919 break ;
920920 case MISSING :
921- LOG .warn ("The library {} had no checksum available on the repository.\n "
922- + "There's a chance it might have gotten corrupted during download,\n "
923- + "but we're loading it anyways." , artifactLogName );
921+ if (!local ) {
922+ LOG .warn ("The library {} had no checksum available on the repository.\n "
923+ + "There's a chance it might have gotten corrupted during download,\n "
924+ + "but we're loading it anyways." , artifactLogName );
925+ }
924926 }
925927 loadedLibraries .put (artifact , preferredVersion );
926928 loadedLibraryMods .put (artifact , loadingModId );
0 commit comments