fix cache dir creation for mojmap
All checks were successful
Publish to snapshot maven / build (push) Successful in 41s

This commit is contained in:
moehreag 2024-08-20 11:50:11 +02:00
parent f90baaef1b
commit 811b4e3611
2 changed files with 24 additions and 23 deletions

View file

@ -8,7 +8,7 @@ plugins {
} }
group = "dev.frogmc" group = "dev.frogmc"
version = "0.0.1-alpha.10" version = "0.0.1-alpha.11"
repositories { repositories {
mavenCentral() mavenCentral()

View file

@ -49,6 +49,7 @@ public class MojmapProvider {
return HttpHelper.getString(mappingsUrl).map(s -> { return HttpHelper.getString(mappingsUrl).map(s -> {
try { try {
Files.createDirectories(cacheFile.getParent());
Files.writeString(cacheFile, s); Files.writeString(cacheFile, s);
} catch (IOException e) { } catch (IOException e) {
// TODO // TODO