From 28d635d37a6c232902cd01ba038ea75456111a98 Mon Sep 17 00:00:00 2001 From: Aurora Dawn <131844170+StellarWitch7@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:35:31 -0500 Subject: [PATCH] Eee? --- src/main/scala/stellarwitch7/ram/spell/mind/RAMSlot.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/stellarwitch7/ram/spell/mind/RAMSlot.scala b/src/main/scala/stellarwitch7/ram/spell/mind/RAMSlot.scala index 089e81f..dd61cef 100644 --- a/src/main/scala/stellarwitch7/ram/spell/mind/RAMSlot.scala +++ b/src/main/scala/stellarwitch7/ram/spell/mind/RAMSlot.scala @@ -3,7 +3,7 @@ package stellarwitch7.ram.spell.mind import com.mojang.serialization.Codec import com.mojang.serialization.codecs.RecordCodecBuilder import dev.enjarai.trickster.spell.Fragment -import io.wispforest.accessories.endec.CodecUtils +import dev.enjarai.trickster.EndecTomfoolery /** * Represents a single slot within a Random Access Mind (RAM). @@ -15,6 +15,6 @@ class RAMSlot(var free: Boolean, var value: Fragment) { } object RAMSlot { val codec: Codec[RAMSlot] = RecordCodecBuilder.create(builder => builder.group( Codec.BOOL.fieldOf("free").forGetter(_.free), - CodecUtils.ofEndec(Fragment.ENDEC).fieldOf("value").forGetter(_.value) + EndecTomfoolery.toCodec(Fragment.ENDEC).fieldOf("value").forGetter(_.value) ).apply(builder, RAMSlot(_, _))) }