--- a/net/minecraft/world/entity/ai/behavior/EraseMemoryIf.java
+++ b/net/minecraft/world/entity/ai/behavior/EraseMemoryIf.java
@@ -10,7 +10,7 @@
 public class EraseMemoryIf {
     public static <E extends LivingEntity> BehaviorControl<E> create(Predicate<E> p_260241_, MemoryModuleType<?> p_259406_) {
         return BehaviorBuilder.create(
-            p_260008_ -> p_260008_.<MemoryAccessor>group(p_260008_.present(p_259406_)).apply(p_260008_, p_259127_ -> (p_259033_, p_259929_, p_260086_) -> {
+            p_260008_ -> p_260008_.group(p_260008_.present(p_259406_)).apply(p_260008_, p_259127_ -> (p_259033_, p_259929_, p_260086_) -> {
                         if (p_260241_.test(p_259929_)) {
                             p_259127_.erase();
                             return true;
