diff --git a/Chroma-Core/pom.xml b/Chroma-Core/pom.xml index 3fe75f1..0b25431 100755 --- a/Chroma-Core/pom.xml +++ b/Chroma-Core/pom.xml @@ -125,7 +125,7 @@ Multiverse-Core - http://repo.onarandombox.com/content/repositories/multiverse/ + https://repo.onarandombox.com/content/groups/public/ minecraft-repo @@ -136,7 +136,7 @@ org.reflections reflections - 0.9.10 + 0.10.2 compile @@ -161,12 +161,12 @@ org.javassist javassist - 3.20.0-GA + 3.28.0-GA org.mockito mockito-core - 3.0.0 + 4.2.0 com.github.TBMCPlugins.ChromaCore @@ -189,13 +189,13 @@ com.onarandombox.multiversecore Multiverse-Core - 4.0.1 + 4.3.1 provided me.lucko commodore - 1.8 + 1.11 compile diff --git a/Chroma-Core/src/main/java/buttondevteam/lib/architecture/CommentedConfiguration.java b/Chroma-Core/src/main/java/buttondevteam/lib/architecture/CommentedConfiguration.java index fb6be2e..d3ee07a 100644 --- a/Chroma-Core/src/main/java/buttondevteam/lib/architecture/CommentedConfiguration.java +++ b/Chroma-Core/src/main/java/buttondevteam/lib/architecture/CommentedConfiguration.java @@ -10,6 +10,7 @@ import org.yaml.snakeyaml.representer.Representer; import java.io.File; import java.io.IOException; +import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.util.HashMap; @@ -174,7 +175,7 @@ public class CommentedConfiguration extends YamlConfiguration { while (newContents.toString().startsWith(" " + System.getProperty("line.separator"))) { newContents = new StringBuilder(newContents.toString().replaceFirst(" " + System.getProperty("line.separator"), "")); } - Files.write(file.toPath(), newContents.toString().getBytes()); + Files.write(file.toPath(), newContents.toString().getBytes(StandardCharsets.UTF_8)); } }