--- a/net/minecraft/advancements/critereon/PlayerPredicate.java
+++ b/net/minecraft/advancements/critereon/PlayerPredicate.java
@@ -234,11 +234,11 @@
         private static <T> MapCodec<PlayerPredicate.StatMatcher<T>> createTypedCodec(StatType<T> p_299086_) {
             return RecordCodecBuilder.mapCodec(
                 p_337389_ -> p_337389_.group(
-                            (App<Mu<? extends PlayerPredicate.StatMatcher<?>>, Holder<T>>)p_299086_.getRegistry()
+                            p_299086_.getRegistry()
                                 .holderByNameCodec()
                                 .fieldOf("stat")
                                 .forGetter(PlayerPredicate.StatMatcher::value),
-                            (App<Mu<? extends PlayerPredicate.StatMatcher<?>>, MinMaxBounds.Ints>)MinMaxBounds.Ints.CODEC
+                            MinMaxBounds.Ints.CODEC
                                 .optionalFieldOf("value", MinMaxBounds.Ints.ANY)
                                 .forGetter(PlayerPredicate.StatMatcher::range)
                         )
