--- a/net/minecraft/core/registries/BuiltInRegistries.java
+++ b/net/minecraft/core/registries/BuiltInRegistries.java
@@ -317,7 +317,7 @@
         Bootstrap.checkBootstrapCalled(() -> "registry " + p_259230_);
         ResourceLocation resourcelocation = p_259230_.location();
         LOADERS.put(resourcelocation, () -> p_259210_.run(p_260327_));
-        WRITABLE_REGISTRY.register((ResourceKey<WritableRegistry<?>>)p_259230_, p_260327_, RegistrationInfo.BUILT_IN);
+        WRITABLE_REGISTRY.register((ResourceKey)p_259230_, p_260327_, RegistrationInfo.BUILT_IN);
         return p_260327_;
     }
 
