--- a/net/minecraft/world/level/chunk/PalettedContainer.java
+++ b/net/minecraft/world/level/chunk/PalettedContainer.java
@@ -56,7 +56,7 @@
     private static <T, C extends PalettedContainerRO<T>> Codec<C> codec(
         IdMap<T> p_238428_, Codec<T> p_238429_, PalettedContainer.Strategy p_238430_, T p_238431_, PalettedContainerRO.Unpacker<T, C> p_238432_
     ) {
-        return RecordCodecBuilder.<PalettedContainerRO.PackedData>create(
+        return RecordCodecBuilder.<PalettedContainerRO.PackedData<T>>create(
                 p_338082_ -> p_338082_.group(
                             p_238429_.mapResult(ExtraCodecs.orElsePartial(p_238431_))
                                 .listOf()
