From 049fae5c65de8352b2708cf7ae08b1b30505e926 Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Sun, 12 May 2019 23:44:46 -0500 Subject: [PATCH] Add support for vanilla recipes having nbt on result (#5710) Fix #5663 --- .../net/minecraft/item/crafting/ShapedRecipe.java.patch | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/item/crafting/ShapedRecipe.java.patch b/patches/minecraft/net/minecraft/item/crafting/ShapedRecipe.java.patch index fe3c72486..08d130491 100644 --- a/patches/minecraft/net/minecraft/item/crafting/ShapedRecipe.java.patch +++ b/patches/minecraft/net/minecraft/item/crafting/ShapedRecipe.java.patch @@ -89,7 +89,13 @@ } if (i > 0 && astring[0].length() != s.length()) { -@@ -258,6 +277,7 @@ +@@ -253,11 +272,12 @@ + throw new JsonParseException("Disallowed data tag found"); + } else { + int i = JsonUtils.func_151208_a(p_199798_0_, "count", 1); +- return new ItemStack(item, i); ++ return net.minecraftforge.common.crafting.CraftingHelper.getItemStack(p_199798_0_, true); + } } public static class Serializer implements IRecipeSerializer {