Fabric API

Fabric API

106M Downloads

Unnecessary recreation of identifiers in the VillagerTypeHelper.register method

haykam821 opened this issue ยท 1 comments

commented

The deprecated VillagerTypeHelper.register method uses new Identifier(id.toString()) rather than id:

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()));
}

There shouldn't be any observable difference between the two arguments, but the behavior is a bit silly and seems to have been introduced in 1e232e1.

commented

Its almost not worth the effort to fix this.