Skip to content

Abilities can't reference prefixed resource locations #132

@Apceniy

Description

@Apceniy

Attempting to use prefixed resource locations in codec fields (for example, ability groups in "activate_ability_if" ability) results in the field (and if the field is mandatory, the whole codec) being invalidated.
After some code analysis, I think that this happens because of this line. Currently we have this:
result = new ResourceLocation(rl.result().get());
I assume it should be changed to this:
result = new ResourceLocation(str);
A couple of lines earlier we calculate str but the variable ends up unused, which is probably what should be used in place of rl.result().get() because the value of str also derives from it but then gets the prefix removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions