Fixed a potential crash when crafting with baubles. Closes #2037

This commit is contained in:
Vasco Lavos committed 2016-11-20 16:55:43 +00:00
1 parent 66a2ef509e
commit 15a0ae0d21
1 file changed
+3
@@ -57,6 +57,9 @@ public class CosmeticAttachRecipe implements IRecipe {
}
}
if(!(attachableItem.getItem() instanceof ICosmeticAttachable))
return null;
ICosmeticAttachable attachable = (ICosmeticAttachable) attachableItem.getItem();
if(attachable.getCosmeticItem(attachableItem) != null)
return null;