diff options
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/internal/config/InternalConfig.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/internal/config/InternalConfig.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/internal/config/InternalConfig.java b/src/main/java/cc/polyfrost/oneconfig/internal/config/InternalConfig.java index b3f59ba..0d1ab3e 100644 --- a/src/main/java/cc/polyfrost/oneconfig/internal/config/InternalConfig.java +++ b/src/main/java/cc/polyfrost/oneconfig/internal/config/InternalConfig.java @@ -64,7 +64,7 @@ public abstract class InternalConfig extends Config { @Override public void load() { try (BufferedReader reader = new BufferedReader(new InputStreamReader(Files.newInputStream(Paths.get("OneConfig/" + configFile)), StandardCharsets.UTF_8))) { - deserializePart(JsonUtils.PARSER.parse(reader).getAsJsonObject(), this); + gson.fromJson(reader, this.getClass()); } catch (IOException e) { e.printStackTrace(); } |