mirror of
https://github.com/FabricMC/fabric.git
synced 2025-03-28 07:40:02 -04:00
Remove unnecessary recreation of identifiers in VillagerTypeHelper.register (#3597)
This commit is contained in:
parent
e761c6698e
commit
c0751a9cc4
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
Reference in a new issue