diff --git a/src/main/java/io/github/ashisbored/playerpronouns/Config.java b/src/main/java/io/github/ashisbored/playerpronouns/Config.java index 7faea63..c0494b4 100644 --- a/src/main/java/io/github/ashisbored/playerpronouns/Config.java +++ b/src/main/java/io/github/ashisbored/playerpronouns/Config.java @@ -76,8 +76,7 @@ public class Config { } else { try { String s = Files.readString(path); - JsonParser parser = new JsonParser(); - JsonElement ele = parser.parse(s); + JsonElement ele = JsonParser.parseString(s); DataResult result = CODEC.decode(JsonOps.INSTANCE, ele).map(Pair::getFirst); Optional> err = result.error(); err.ifPresent(e -> PlayerPronouns.LOGGER.warn("Failed to load config: {}", e.message()));