mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Fixed a crash when crafting with a bauble that has a cosmetic override. Closes #649
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user