fix(weaver-pojo): Fix value-based visiting in compound entries

This commit is contained in:
2025-11-08 13:28:12 +01:00
parent 965f6709ef
commit 03a0b287b8

View File

@@ -86,7 +86,7 @@ public class StaticPojoCompoundConfigEntry<T> extends BaseConfigEntry<T> impleme
try {
Object subValue = entry.getter().invoke(value);
//noinspection unchecked
visitor.visitEntry((ConfigEntry<Object>) entry.configEntry(), subValue);
((ConfigEntry<Object>) entry.configEntry()).visitInOrder(visitor, subValue);
} catch (Throwable e) {
throw new RuntimeException("Failed to get compound sub entry value \"" + key + "\"");
}