Skip to content

Commit ad3e750

Browse files
committed
Temporary files that are not used at runtime are now not checked.
1 parent f104aba commit ad3e750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/zekerzhayard/forgewrapper/installer/detector/IFileDetector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ default boolean checkExtraFiles(String forgeFullVersion) {
205205
* @return True represents the file is ready.
206206
*/
207207
default boolean checkExtraFile(Path path, String sha1) {
208-
return Files.isRegularFile(path) && (sha1 == null || sha1.equals("") || sha1.toLowerCase(Locale.ENGLISH).equals(getFileSHA1(path)));
208+
return sha1 == null || sha1.equals("") || (isFile(path) && sha1.toLowerCase(Locale.ENGLISH).equals(getFileSHA1(path)));
209209
}
210210

211211
static boolean isFile(Path path) {

0 commit comments

Comments
 (0)