diff --git a/docs/datastorage/codecs.md b/docs/datastorage/codecs.md index 2a678291..31f9825a 100644 --- a/docs/datastorage/codecs.md +++ b/docs/datastorage/codecs.md @@ -491,7 +491,7 @@ public static final Codec RECURSIVE_CODEC = Codec.recursive( RecursiveObject.class.getSimpleName(), // This is for the toString method recursedCodec -> RecordCodecBuilder.create(instance -> instance.group( recursedCodec.optionalFieldOf("inner").forGetter(RecursiveObject::inner) - ), RecursiveObject::new) + ).apply(instance, RecursiveObject::new)) ); ```