From 4d20f4747a6d337759fa641b59cc794eb83757e1 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Fri, 31 Jan 2025 04:37:09 +1000 Subject: [PATCH] "Remove" default serialization config from config --- .../java/me/cortex/voxy/client/config/VoxyConfig.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/cortex/voxy/client/config/VoxyConfig.java b/src/main/java/me/cortex/voxy/client/config/VoxyConfig.java index 2eb22b93..deccebda 100644 --- a/src/main/java/me/cortex/voxy/client/config/VoxyConfig.java +++ b/src/main/java/me/cortex/voxy/client/config/VoxyConfig.java @@ -35,10 +35,11 @@ public class VoxyConfig { if (Files.exists(path)) { try (FileReader reader = new FileReader(path.toFile())) { var cfg = GSON.fromJson(reader, VoxyConfig.class); - if (cfg.defaultSaveConfig == null) { - //Shitty gson being a pain TODO: replace with a proper fix - cfg.defaultSaveConfig = ContextSelectionSystem.DEFAULT_STORAGE_CONFIG; - } + + + //TODO: dont always override it + cfg.defaultSaveConfig = ContextSelectionSystem.DEFAULT_STORAGE_CONFIG; + return cfg; } catch (IOException e) { System.err.println("Could not parse config");