mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
update libraries
This commit is contained in:
@@ -38,7 +38,7 @@ public class Checksum {
|
||||
}
|
||||
try {
|
||||
//noinspection deprecation
|
||||
HashCode hash = Files.hash(file, Hashing.sha1());
|
||||
HashCode hash = Files.asByteSource(file).hash(Hashing.sha1());
|
||||
StringBuilder builder = new StringBuilder();
|
||||
for (Byte hashBytes : hash.asBytes()) {
|
||||
builder.append(Integer.toString((hashBytes & 0xFF) + 0x100, 16).substring(1));
|
||||
|
||||
Reference in New Issue
Block a user