This commit is contained in:
Anuken
2025-12-21 00:00:13 -05:00
parent 012eeabc87
commit 6c3b6aeea5
2 changed files with 10 additions and 8 deletions

View File

@@ -399,7 +399,9 @@ public class ContentParser{
T t = internalRead(type, elementType, jsonData, keyType);
if(t != null && !Reflect.isWrapper(t.getClass()) && (type == null || !type.isPrimitive())){
checkNullFields(t);
listeners.each(hook -> hook.parsed(type, jsonData, t));
if(jsonData.isObject()){
listeners.each(hook -> hook.parsed(type, jsonData, t));
}
}
return t;
}