Skip to content

Commit

Permalink
Testing action
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-Wuest committed Sep 20, 2024
1 parent 4f99d37 commit 93eff98
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ public boolean canCraftInDimensions(int width, int height) {
public static class Serializer implements RecipeSerializer<ConditionedShapelessRecipe> {
private static final Codec<ConditionedShapelessRecipe> CODEC = RecordCodecBuilder.create((instance) -> {
return instance.group(
ExtraCodecs.strictOptionalField(Codec.STRING, "group", "").forGetter((shapelessRecipe) -> {
return shapelessRecipe.group;
}), CraftingBookCategory.CODEC.fieldOf("category").orElse(CraftingBookCategory.MISC).forGetter((shapelessRecipe) -> {
ExtraCodecs.strictOptionalField(Codec.STRING, "group", "").forGetter((shapelessRecipe) -> shapelessRecipe.group),
CraftingBookCategory.CODEC.fieldOf("category").orElse(CraftingBookCategory.MISC).forGetter((shapelessRecipe) -> {
return shapelessRecipe.category;
}), ItemStack.ITEM_WITH_COUNT_CODEC.fieldOf("result").forGetter((shapelessRecipe) -> {
return shapelessRecipe.output;
Expand Down

0 comments on commit 93eff98

Please sign in to comment.