Skip to content

Commit

Permalink
Close en_us.hash stream (GeyserMC#1833)
Browse files Browse the repository at this point in the history
  • Loading branch information
Extollite authored Jan 12, 2021
1 parent dd0b4ba commit c0a6465
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ private static void downloadLocale(String locale) {
try {
File hashFile = GeyserConnector.getInstance().getBootstrap().getConfigFolder().resolve("locales/en_us.hash").toFile();
if (hashFile.exists()) {
BufferedReader br = new BufferedReader(new FileReader(hashFile));
curHash = br.readLine().trim();
try (BufferedReader br = new BufferedReader(new FileReader(hashFile))) {
curHash = br.readLine().trim();
}
}
} catch (IOException ignored) { }
targetHash = clientJarInfo.getSha1();
Expand Down

0 comments on commit c0a6465

Please sign in to comment.