Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucraft committed Jul 14, 2024
1 parent 0881214 commit 5b2c9af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ public static <T> DeferredRegister<T> createInternal(String modId, ResourceKey<?
* @param <T> Generic type of the registry
* @return A new instance of a {@link DeferredRegister}
*/
public static <T> DeferredRegister<T> create(String modId, RegistryBuilder<T> registry) {
return create(modId, registry.getRegistryKey());
public static <T> DeferredRegister<T> create(String modId, Registry<T> registry) {
return create(modId, registry.key());
}

}

0 comments on commit 5b2c9af

Please sign in to comment.