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.

This commit is contained in:
Lizbeth Rika committed 2015-04-10 12:52:02 +01:00
1 parent a81e99ae63
commit 11628851d5
1 file changed
+2 -1
@@ -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;
}