mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Fixed a potential crash when crafting with baubles. Closes #2037
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user