mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Fix factories and smelting.
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user