mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 05:27:43 -05:00
Multi-thread native unpacking.
This commit is contained in:
@@ -44,8 +44,9 @@ public class Checksum {
|
||||
|
||||
try {
|
||||
HashCode hash = Files.asByteSource(file).hash(Hashing.sha1());
|
||||
log.debug("Checksum check: '" + hash.toString() + "' == '" + checksum + "'?");
|
||||
return hash.toString().equals(checksum);
|
||||
String hashString = hash.toString();
|
||||
log.debug("Checksum check: '" + hashString + "' == '" + checksum + "'?");
|
||||
return hashString.equals(checksum);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user