mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-21 04:32:27 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user