Revert "Cleaner solution"

This reverts commit a9cc76576a.
This commit is contained in:
Vincent Lee committed 2016-06-17 00:17:48 -05:00
1 parent a9cc76576a
commit 5cdd2ee32f
1 file changed
+2 -2
@@ -56,14 +56,14 @@ public final class LexiconRecipeMappings {
return mappings.get(stackToString(stack));
}
private static String stackToString(ItemStack stack) {
public static String stackToString(ItemStack stack) {
if(stack == null || stack.getItem() == null)
return "NULL";
if(stack.hasTagCompound() && stack.getItem() instanceof IRecipeKeyProvider)
return ((IRecipeKeyProvider) stack.getItem()).getKey(stack);
return stack.getItem().getRegistryName().toString() + (ignoreMeta(stack) ? "" : "~" + stack.getItemDamage());
return stack.getUnlocalizedName() + (ignoreMeta(stack) ? "" : "~" + stack.getItemDamage());
}
public static boolean ignoreMeta(ItemStack stack) {