Skip to content

Commit

Permalink
Remove unnecessary recreation of identifiers in VillagerTypeHelper.re…
Browse files Browse the repository at this point in the history
…gister (#3597)
  • Loading branch information
Syst3ms authored and modmuss50 committed Feb 18, 2024
1 parent e761c66 commit c0751a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public final class VillagerTypeHelper {
*/
public static VillagerType register(Identifier id) {
Objects.requireNonNull(id, "Id of villager type cannot be null");
return Registry.register(Registries.VILLAGER_TYPE, new Identifier(id.toString()), new VillagerType(id.toString()));
return Registry.register(Registries.VILLAGER_TYPE, id, new VillagerType(id.toString()));
}

/**
Expand Down

0 comments on commit c0751a9

Please sign in to comment.