--- a/net/minecraft/util/datafix/fixes/ItemRemoveBlockEntityTagFix.java
+++ b/net/minecraft/util/datafix/fixes/ItemRemoveBlockEntityTagFix.java
@@ -43,7 +43,7 @@
                             return p_242866_;
                         }
 
-                        return p_242866_.set(opticfinder1, ((Pair)optional4.get()).getFirst());
+                        return p_242866_.<Object, Object>set((OpticFinder<Object>)opticfinder1, (Typed<Object>)((Pair)optional4.get()).getFirst());
                     }
                 }
             }
