Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
Hotfix for unsigned long parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
3TUSK committed Jul 10, 2021
1 parent b926fd1 commit d2e10ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
id 'signing'
}

version = '0.1.0'
version = '0.1.1'
group = 'org.teacon'
archivesBaseName = 'RemoteSync-FML'

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/teacon/sync/PGPKeyStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public PGPKeyStore(Path localKeyStorePath, List<URL> keyServers, List<String> ke
readKeys(Files.newInputStream(localKeyStorePath), keyRings);
}
for (String keyId : keyIds) {
if (keyRings.containsKey(Long.decode(keyId))) {
if (keyRings.containsKey(keyId.startsWith("0x") ? Long.parseUnsignedLong(keyId.substring(2), 16) : Long.parseUnsignedLong(keyId, 16))) {
LOGGER.debug(MARKER,"Not trying to load key {} because it exists locally", keyId);
continue;
}
Expand Down

0 comments on commit d2e10ce

Please sign in to comment.