diff --git a/fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/villager/VillagerTypeHelper.java b/fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/villager/VillagerTypeHelper.java index 958fad34d..ebc90c096 100644 --- a/fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/villager/VillagerTypeHelper.java +++ b/fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/villager/VillagerTypeHelper.java @@ -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())); } /**