Skip to content

Commit 092b036

Browse files
committed
add a flag to control the hash checking
Signed-off-by: Trial97 <[email protected]>
1 parent 8e00b22 commit 092b036

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/net/minecraftforge/installer/actions/PostProcessors.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public class PostProcessors {
4646
private final ProgressCallback monitor;
4747
private final boolean hasTasks;
4848
private final List<Processor> processors;
49+
private boolean skipHashCheck = false;
4950

5051
public PostProcessors(InstallV1 profile, boolean isClient, ProgressCallback monitor) {
5152
this.profile = profile;
@@ -234,7 +235,7 @@ public Set<File> process(File librariesDir, File minecraft, File root, File inst
234235
ret.add(output.file);
235236
if (!output.file.exists()) {
236237
err.append("\n ").append(output.file).append(" missing");
237-
} else {
238+
} else if (!this.skipHashCheck){
238239
String sha = DownloadUtils.getSha1(output.file);
239240
if (sha.equals(output.sha1)) {
240241
log(" Output: " + output.file + " Checksum Validated: " + sha);

0 commit comments

Comments
 (0)