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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user