9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-25 01:49:30 +00:00

fix(core): 修复 Dropbox 缓存文件写入异常

This commit is contained in:
jhqwqmc
2025-08-07 21:39:30 +08:00
parent 81fd77d67b
commit b1187d19ca

View File

@@ -73,7 +73,7 @@ public class DropboxHost implements ResourcePackHost {
cache.addProperty("expires_at", this.expiresAt);
Path cachePath = CraftEngine.instance().dataFolderPath().resolve("cache").resolve("dropbox.json");
try {
Files.createDirectories(cachePath);
Files.createDirectories(cachePath.getParent());
Files.writeString(
cachePath,
GsonHelper.get().toJson(cache),