Skip to content

Commit

Permalink
Temporary files that are not used at runtime are now not checked.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZekerZhayard committed Dec 11, 2021
1 parent f104aba commit ad3e750
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ default boolean checkExtraFiles(String forgeFullVersion) {
* @return True represents the file is ready.
*/
default boolean checkExtraFile(Path path, String sha1) {
return Files.isRegularFile(path) && (sha1 == null || sha1.equals("") || sha1.toLowerCase(Locale.ENGLISH).equals(getFileSHA1(path)));
return sha1 == null || sha1.equals("") || (isFile(path) && sha1.toLowerCase(Locale.ENGLISH).equals(getFileSHA1(path)));
}

static boolean isFile(Path path) {
Expand Down

0 comments on commit ad3e750

Please sign in to comment.