Skip to content

Data generator can incorrectly override recipe IDs #2962

Open
@Juuxel

Description

@Juuxel

FabricRecipeProvider.getRecipeIdentifier replaces the namespace of the recipe with the mod id of the data generator:

protected Identifier getRecipeIdentifier(Identifier identifier) {
return new Identifier(output.getModId(), identifier.getPath());
}

This can easily lead to invalid recipe advancements where the advancement's default has_the_recipe criterion still references the original namespace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority: lowLow priority PRs that don't immediately need to be resolved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions