mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix en_us downloading and hashing on Android (#1574)
This commit is contained in:
parent
0268ef7d2b
commit
9ed3197191
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ public class LocaleUtils {
|
|||
|
||||
if (locale.equals("en_us")) {
|
||||
try {
|
||||
Path hashFile = localeFile.getParentFile().toPath().resolve("en_us.hash");
|
||||
Path hashFile = GeyserConnector.getInstance().getBootstrap().getConfigFolder().resolve("locales/en_us.hash");
|
||||
if (hashFile.toFile().exists()) {
|
||||
curHash = String.join("", Files.readAllLines(hashFile));
|
||||
}
|
||||
|
@ -247,7 +247,7 @@ public class LocaleUtils {
|
|||
localeJar.close();
|
||||
|
||||
// Store the latest jar hash
|
||||
FileUtils.writeFile(localeFile.getParentFile().toPath().resolve("en_us.hash").toString(), clientJarInfo.getSha1().toCharArray());
|
||||
FileUtils.writeFile(GeyserConnector.getInstance().getBootstrap().getConfigFolder().resolve("locales/en_us.hash").toString(), clientJarInfo.getSha1().toCharArray());
|
||||
|
||||
// Delete the nolonger needed client/server jar
|
||||
Files.delete(tmpFilePath);
|
||||
|
|
Loading…
Reference in a new issue