Skip to content

Commit

Permalink
Fixed a potential crash when crafting with baubles. Closes #2037
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazkii committed Nov 20, 2016
1 parent 66a2ef5 commit 15a0ae0
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -57,6 +57,9 @@ public ItemStack getCraftingResult(@Nonnull InventoryCrafting var1) {
}
}

if(!(attachableItem.getItem() instanceof ICosmeticAttachable))
return null;

ICosmeticAttachable attachable = (ICosmeticAttachable) attachableItem.getItem();
if(attachable.getCosmeticItem(attachableItem) != null)
return null;
Expand Down

0 comments on commit 15a0ae0

Please sign in to comment.