NBT when looking up by ingredient [1.7 branch]

Should be the same as the last PR, but for the 1.7 branch.
This commit is contained in:
mezz committed 2015-08-19 21:17:56 -07:00
1 parent f1c7b134d9
commit 956aabbbdf
1 file changed
+3
@@ -117,6 +117,9 @@ public abstract class TemplateRecipeHandler implements ICraftingHandler, IUsageH
if (NEIServerUtils.areStacksSameTypeCrafting(ingredient, stack.items[i])) {
stack.item = stack.items[i];
stack.item.setItemDamage(ingredient.getItemDamage());
if (ingredient.hasTagCompound()) {
stack.item.setTagCompound((NBTTagCompound) ingredient.getTagCompound().copy());
}
stack.items = new ItemStack[]{stack.item};
stack.setPermutationToRender(0);
break;