From 608be4107c6adec53996912c964be091e36f77e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=A5=9E=E7=9A=84=E5=86=B0=E5=87=89?= <2801621420@qq.com> Date: Tue, 24 Jan 2023 16:18:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E7=9B=AE=E5=BD=95=E6=96=87=E4=BB=B6=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/cn/powernukkitx/fd/render/render/Template.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FrostRender/src/main/java/cn/powernukkitx/fd/render/render/Template.java b/FrostRender/src/main/java/cn/powernukkitx/fd/render/render/Template.java index 4e9a7d5..b8262db 100644 --- a/FrostRender/src/main/java/cn/powernukkitx/fd/render/render/Template.java +++ b/FrostRender/src/main/java/cn/powernukkitx/fd/render/render/Template.java @@ -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(); }