From a2b6a4ce8610b73b521cf692591b522ca8e0e15b Mon Sep 17 00:00:00 2001 From: PinkGoosik Date: Wed, 13 Dec 2023 15:43:20 +0500 Subject: [PATCH] update buildscript --- build.gradle | 7 +------ gradle/wrapper/gradle-wrapper.properties | 2 +- src/main/java/skylands/config/SkylandsConfig.java | 5 +++-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 8de84e0..1d5cd23 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,5 @@ plugins { - id "fabric-loom" version "1.3-SNAPSHOT" - id "io.github.juuxel.loom-vineflower" version "1.11.0" + id "fabric-loom" version "1.4-SNAPSHOT" } version = project.mod_version @@ -33,10 +32,6 @@ dependencies { modImplementation include("me.lucko:fabric-permissions-api:0.2-SNAPSHOT") } -vineflower { - toolVersion = "1.9.3" -} - loom { accessWidenerPath = file("src/main/resources/" + base.archivesName.get() + ".accesswidener") } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 99f52f0..6704de8 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists \ No newline at end of file diff --git a/src/main/java/skylands/config/SkylandsConfig.java b/src/main/java/skylands/config/SkylandsConfig.java index 9df92c9..807c238 100644 --- a/src/main/java/skylands/config/SkylandsConfig.java +++ b/src/main/java/skylands/config/SkylandsConfig.java @@ -12,6 +12,7 @@ import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; +import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; @@ -48,7 +49,7 @@ public static void init() { public static SkylandsConfig read() { String filePath = FabricLoader.getInstance().getConfigDir().resolve("skylands.json").toString(); try { - BufferedReader fixReader = new BufferedReader(new FileReader(filePath)); + BufferedReader fixReader = new BufferedReader(new FileReader(filePath, StandardCharsets.UTF_8)); var json = GSON.fromJson(fixReader, JsonObject.class); boolean fixed = false; @@ -105,7 +106,7 @@ public static SkylandsConfig read() { public void save() { try { String filePath = FabricLoader.getInstance().getConfigDir().resolve("skylands.json").toString(); - try(FileWriter writer = new FileWriter(filePath)) { + try(FileWriter writer = new FileWriter(filePath, StandardCharsets.UTF_8)) { writer.write(GSON.toJson(this)); } }