mirror of
https://github.com/FabricMC/fabric.git
synced 2025-05-06 19:30:38 -04:00
Remove unnecessary recreation of identifiers in VillagerTypeHelper.register (#3597)
(cherry picked from commit c0751a9cc4
)
This commit is contained in:
parent
2c869ded7d
commit
e2e84a3c66
1 changed files with 1 additions and 1 deletions
|
@ -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()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue