Skip to content

Commit

Permalink
修复无法读取目录文件的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperIceCN committed Jan 24, 2023
1 parent 7285a0f commit 608be41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Template(String lang, @NotNull Path path, @NotNull Path cataloguePath) th
this.templateContent = Files.readString(path, StandardCharsets.UTF_8);
this.cataloguePath = cataloguePath;
if (Files.isReadable(cataloguePath)) {
this.catalogue = ConfigUtils.GSON.get().fromJson(Files.readString(Shared.WORKING_DIR.get().resolve(cataloguePath), StandardCharsets.UTF_8), JsonObject.class);
this.catalogue = ConfigUtils.GSON.get().fromJson(Files.readString(cataloguePath, StandardCharsets.UTF_8), JsonObject.class);
} else {
this.catalogue = new JsonObject();
}
Expand Down

0 comments on commit 608be41

Please sign in to comment.