Added a fallback for LexiconRecipeMappings.stackToString(). Closes #1659

This commit is contained in:
Vasco Lavos committed 2015-12-16 18:51:15 +00:00
1 parent 8bf062cc19
commit ab1d938abe
2 files changed
+4 -1

No files matched your search

@@ -51,6 +51,9 @@ public final class LexiconRecipeMappings {
}
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);
@@ -1,4 +1,4 @@
@API(owner = "Botania", apiVersion = "73", provides = "BotaniaAPI")
@API(owner = "Botania", apiVersion = "74", provides = "BotaniaAPI")
package vazkii.botania.api;
import cpw.mods.fml.common.API;