Fixed a crash when crafting with a bauble that has a cosmetic override. Closes #649

This commit is contained in:
Lizbeth Rika committed 2015-03-16 17:29:58 +00:00
1 parent b3b4982005
commit 9bc0105902
1 file changed
+3 -6
@@ -26,12 +26,9 @@ public class CosmeticRemoveRecipe implements IRecipe {
for(int i = 0; i < var1.getSizeInventory(); i++) {
ItemStack stack = var1.getStackInSlot(i);
if(stack != null) {
if(!foundAttachable) {
if(stack.getItem() instanceof ICosmeticAttachable && !(stack.getItem() instanceof ICosmeticBauble) && ((ICosmeticAttachable) stack.getItem()).getCosmeticItem(stack) != null) {
foundAttachable = true;
break;
} else return false;
}
if(stack.getItem() instanceof ICosmeticAttachable && !(stack.getItem() instanceof ICosmeticBauble) && ((ICosmeticAttachable) stack.getItem()).getCosmeticItem(stack) != null)
foundAttachable = true;
else return false;
}
}