mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-23 15:26:37 +01:00
Close en_us.hash stream (#1833)
This commit is contained in:
parent
dd0b4bafe8
commit
c0a64659c2
1 changed files with 3 additions and 2 deletions
|
@ -142,8 +142,9 @@ public class LocaleUtils {
|
|||
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();
|
||||
|
|
Loading…
Reference in a new issue