Skip to content

Commit

Permalink
fix: Fix configs not loading correctly on NeoForge
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Jul 12, 2024
1 parent ba55be9 commit be55796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private <T> void readConfigValues(String parentPath, T instance, ModConfig confi
List<Field> 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 {
Expand Down

0 comments on commit be55796

Please sign in to comment.