diff --git a/src/main/java/com/minelittlepony/unicopia/datagen/providers/recipe/TrickCraftingRecipeJsonBuilder.java b/src/main/java/com/minelittlepony/unicopia/datagen/providers/recipe/TrickCraftingRecipeJsonBuilder.java index 7bf4c568..9fdfdcc6 100644 --- a/src/main/java/com/minelittlepony/unicopia/datagen/providers/recipe/TrickCraftingRecipeJsonBuilder.java +++ b/src/main/java/com/minelittlepony/unicopia/datagen/providers/recipe/TrickCraftingRecipeJsonBuilder.java @@ -5,6 +5,7 @@ import java.util.Map; import org.jetbrains.annotations.Nullable; import org.spongepowered.include.com.google.common.base.Preconditions; +import com.minelittlepony.unicopia.item.UItems; import com.minelittlepony.unicopia.recipe.ZapAppleRecipe; import net.minecraft.advancement.Advancement; @@ -71,7 +72,7 @@ public class TrickCraftingRecipeJsonBuilder implements CraftingRecipeJsonBuilder .criteriaMerger(AdvancementRequirements.CriterionMerger.OR); criterions.forEach(builder::criterion); exporter.accept(id, - new ZapAppleRecipe(group == null ? "" : group, CraftingRecipeCategory.MISC, output.getDefaultStack(), inputs), + new ZapAppleRecipe(group == null ? "" : group, CraftingRecipeCategory.MISC, UItems.ZAP_APPLE.setAppearance(UItems.ZAP_APPLE.getDefaultStack(), output.getDefaultStack()), inputs), builder.build(id.withPrefixedPath("recipes/" + category.getName() + "/")) ); } diff --git a/src/main/java/com/minelittlepony/unicopia/recipe/ZapAppleRecipe.java b/src/main/java/com/minelittlepony/unicopia/recipe/ZapAppleRecipe.java index 127e1c42..cd7764b2 100644 --- a/src/main/java/com/minelittlepony/unicopia/recipe/ZapAppleRecipe.java +++ b/src/main/java/com/minelittlepony/unicopia/recipe/ZapAppleRecipe.java @@ -18,6 +18,11 @@ public class ZapAppleRecipe extends ShapelessRecipe { super(group, category, output, input); } + @Override + public RecipeSerializer getSerializer() { + return URecipes.ZAP_APPLE_SERIALIZER; + } + public static class Serializer implements RecipeSerializer { private static final Codec CODEC = RecordCodecBuilder.create(instance -> instance.group( Codec.STRING.optionalFieldOf("group", "").forGetter(ZapAppleRecipe::getGroup),