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..3d804965 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,8 @@ 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.item.component.Appearance; import com.minelittlepony.unicopia.recipe.ZapAppleRecipe; import net.minecraft.advancement.Advancement; @@ -71,7 +73,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, Appearance.set(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 b6a0c330..97cdd1e3 100644 --- a/src/main/java/com/minelittlepony/unicopia/recipe/ZapAppleRecipe.java +++ b/src/main/java/com/minelittlepony/unicopia/recipe/ZapAppleRecipe.java @@ -11,6 +11,7 @@ import net.minecraft.network.RegistryByteBuf; import net.minecraft.network.codec.PacketCodec; import net.minecraft.network.codec.PacketCodecs; import net.minecraft.recipe.Ingredient; +import net.minecraft.recipe.RecipeSerializer; import net.minecraft.recipe.ShapelessRecipe; import net.minecraft.recipe.book.CraftingRecipeCategory; import net.minecraft.util.collection.DefaultedList; @@ -37,4 +38,9 @@ public class ZapAppleRecipe extends ShapelessRecipe { public ZapAppleRecipe(String group, CraftingRecipeCategory category, ItemStack output, DefaultedList input) { super(group, category, output, input); } + + @Override + public RecipeSerializer getSerializer() { + return URecipes.ZAP_APPLE_SERIALIZER; + } }