mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
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:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user