Skip to content

Commit 608be41

Browse files
committed
修复无法读取目录文件的问题
1 parent 7285a0f commit 608be41

File tree

1 file changed

+1
-1
lines changed
  • FrostRender/src/main/java/cn/powernukkitx/fd/render/render

1 file changed

+1
-1
lines changed

FrostRender/src/main/java/cn/powernukkitx/fd/render/render/Template.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public Template(String lang, @NotNull Path path, @NotNull Path cataloguePath) th
4141
this.templateContent = Files.readString(path, StandardCharsets.UTF_8);
4242
this.cataloguePath = cataloguePath;
4343
if (Files.isReadable(cataloguePath)) {
44-
this.catalogue = ConfigUtils.GSON.get().fromJson(Files.readString(Shared.WORKING_DIR.get().resolve(cataloguePath), StandardCharsets.UTF_8), JsonObject.class);
44+
this.catalogue = ConfigUtils.GSON.get().fromJson(Files.readString(cataloguePath, StandardCharsets.UTF_8), JsonObject.class);
4545
} else {
4646
this.catalogue = new JsonObject();
4747
}

0 commit comments

Comments
 (0)