Fixed farmer's delight cutting board recipes

This commit is contained in:
Sollace 2024-12-10 23:56:47 +01:00
parent 51ca5b17cd
commit b03d5e917e
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -115,7 +115,7 @@ public class CuttingBoardRecipeJsonBuilder {
public record Tool(Identifier type, TagKey<Item> tag) {
static final Codec<Tool> CODEC = RecordCodecBuilder.create(ii -> ii.group(
Identifier.CODEC.fieldOf("type").forGetter(Tool::type),
TagKey.codec(RegistryKeys.ITEM).fieldOf("tag").forGetter(Tool::tag)
TagKey.unprefixedCodec(RegistryKeys.ITEM).fieldOf("tag").forGetter(Tool::tag)
).apply(ii, Tool::new));
}
public record Result(Identifier item, int count) {