3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 16:12:46 +01:00

Close en_us.hash stream (#1833)

Dieser Commit ist enthalten in:
Extollite 2021-01-12 21:41:15 +01:00 committet von GitHub
Ursprung dd0b4bafe8
Commit c0a64659c2
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -142,8 +142,9 @@ public class LocaleUtils {
try { try {
File hashFile = GeyserConnector.getInstance().getBootstrap().getConfigFolder().resolve("locales/en_us.hash").toFile(); File hashFile = GeyserConnector.getInstance().getBootstrap().getConfigFolder().resolve("locales/en_us.hash").toFile();
if (hashFile.exists()) { if (hashFile.exists()) {
BufferedReader br = new BufferedReader(new FileReader(hashFile)); try (BufferedReader br = new BufferedReader(new FileReader(hashFile))) {
curHash = br.readLine().trim(); curHash = br.readLine().trim();
}
} }
} catch (IOException ignored) { } } catch (IOException ignored) { }
targetHash = clientJarInfo.getSha1(); targetHash = clientJarInfo.getSha1();