From 11628851d54529c5b37ab7dbca5a9f9b47de64cf Mon Sep 17 00:00:00 2001 From: Lizbeth Rika Date: Fri, 10 Apr 2015 12:52:02 +0100 Subject: [PATCH] Fixed the Resolute Ivy being able to dupe items in the crafting grid. Also fixed being able to add Resolute Ivy to an item that already has it. Closes #736. --- .../vazkii/botania/common/crafting/recipe/KeepIvyRecipe.java | 3 ++- 1 file changed, 2 insertions(+), 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 14fe81fef..e478e373a 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) + else if(!foundItem && !(ItemNBTHelper.detectNBT(stack) && ItemNBTHelper.getBoolean(stack, ItemKeepIvy.TAG_KEEP, false))) foundItem = true; else return false; } @@ -51,6 +51,7 @@ public class KeepIvyRecipe implements IRecipe { ItemStack copy = item.copy(); ItemNBTHelper.setBoolean(copy, ItemKeepIvy.TAG_KEEP, true); + copy.stackSize = 1; return copy; }