--- a/net/minecraft/client/searchtree/SearchRegistry.java
+++ b/net/minecraft/client/searchtree/SearchRegistry.java
@@ -64,7 +64,7 @@
         }
 
         void populate(List<T> p_235246_) {
-            this.tree = this.factory.apply((T)p_235246_);
+            this.tree = this.factory.apply(p_235246_);
             this.tree.refresh();
         }
 
