Fix factories and smelting.

This commit is contained in:
Ben Spiers committed 2014-09-05 18:31:10 +01:00
1 parent 29c94f9dd8
commit 3c547fa0aa
9 files changed
+80 -40

No files matched your search

@@ -242,6 +242,7 @@ public final class StackUtils
public static int hashItemStack(ItemStack stack)
{
return stack.getItem().getUnlocalizedName(stack).hashCode() << 8 | stack.getItemDamage();
String name = stack.getItemDamage() == OreDictionary.WILDCARD_VALUE ? stack.getItem().getUnlocalizedName() : stack.getItem().getUnlocalizedName(stack);
return name.hashCode() << 8 | stack.getItemDamage();
}
}