Fix crafting/repair exploits. Normalize data value for leaves