mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fixed items that take damage when used in a crafting recipe taking damage purely by being put in the grid. Closes #1458
This commit is contained in:
1 parent
afdf57e070
commit
c1e697feb7
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user