From c1e697feb74a99acf774780084c5af77f9c07b65 Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Thu, 12 Nov 2015 23:26:33 +0000 Subject: [PATCH] Fixed items that take damage when used in a crafting recipe taking damage purely by being put in the grid. Closes #1458 --- .../vazkii/botania/common/crafting/recipe/KeepIvyRecipe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/vazkii/botania/common/crafting/recipe/KeepIvyRecipe.java b/src/main/java/vazkii/botania/common/crafting/recipe/KeepIvyRecipe.java index 9bd7d75e7..5bd1fcfab 100644 --- a/src/main/java/vazkii/botania/common/crafting/recipe/KeepIvyRecipe.java +++ b/src/main/java/vazkii/botania/common/crafting/recipe/KeepIvyRecipe.java @@ -30,7 +30,7 @@ public class KeepIvyRecipe implements IRecipe { if(stack != null) { if(stack.getItem() == ModItems.keepIvy) foundIvy = true; - else if(!foundItem && !(ItemNBTHelper.detectNBT(stack) && ItemNBTHelper.getBoolean(stack, ItemKeepIvy.TAG_KEEP, false)) && stack.getItem().getContainerItem(stack) == null) + else if(!foundItem && !(ItemNBTHelper.detectNBT(stack) && ItemNBTHelper.getBoolean(stack, ItemKeepIvy.TAG_KEEP, false)) && stack.getItem().hasContainerItem(stack)) foundItem = true; else return false; }