From 54103be12b6f0cf7aa8ec08ff9093d54cdec16cb Mon Sep 17 00:00:00 2001 From: ChampionAsh5357 Date: Tue, 21 May 2024 12:09:45 -0400 Subject: [PATCH] Fix recursive codec example (#79) --- docs/datastorage/codecs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) ); ```