Tinker's Hammer Crafting Clearing Hammer NBT
Invadermonky opened this issue ยท 2 comments
Description
Any recipe using (but not consuming) the Tinker's Hammer causes all tag data to be stripped from the hammer. I am unsure if this is intentional behavior, but it breaks compatibility with Omniwand, Morph-o-Tool, or any other mod that stores information in the item tag.
The Problem
In this line of code, the container item is actually being reset after every craft as a new ItemStack with a stack size of 1 is being created and placed in the crafting grid. This is resetting the item completely.
The Fix
The passed ItemStack from the above method should be used to define the container item.
public ItemStack getContainerItem(ItemStack stack){
return stack.copy();
}