diff --git a/CHANGELOG.md b/CHANGELOG.md index 00188e3f..8907307c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- Fixed configs not loading properly on NeoForge - Updated to Breaking Changes of NeoForge 21.0.82 - USE BALM 21.0.12 FOR NEOFORGE VERSIONS BEFORE 21.0.82 - USE BALM 21.0.9 FOR NEOFORGE VERSIONS BEFORE 21.0.40 diff --git a/neoforge/src/main/java/net/blay09/mods/balm/neoforge/config/NeoForgeBalmConfig.java b/neoforge/src/main/java/net/blay09/mods/balm/neoforge/config/NeoForgeBalmConfig.java index 5999457e..781da747 100644 --- a/neoforge/src/main/java/net/blay09/mods/balm/neoforge/config/NeoForgeBalmConfig.java +++ b/neoforge/src/main/java/net/blay09/mods/balm/neoforge/config/NeoForgeBalmConfig.java @@ -122,7 +122,7 @@ private void readConfigValues(String parentPath, T instance, ModConfig confi List fields = ConfigReflection.getAllFields(instance.getClass()); for (Field field : fields) { String path = parentPath + field.getName(); - final var spec = ((ModConfigSpec) config.getSpec()).getSpec(); + final var spec = ((ModConfigSpec) config.getSpec()).getValues(); boolean hasValue = spec.contains(path); Class type = field.getType(); try {