Skip to content

Commit

Permalink
update buildscript
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkGoosik committed Dec 13, 2023
1 parent 603cf6c commit a2b6a4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
7 changes: 1 addition & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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")
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
5 changes: 3 additions & 2 deletions src/main/java/skylands/config/SkylandsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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));
}
}
Expand Down

0 comments on commit a2b6a4c

Please sign in to comment.