Fix IngredientNBT comparing stackSize when checking if ingredient is valid (#4418)

This commit is contained in:
ichttt authored and mezz committed 2017-09-23 14:25:45 -07:00
1 parent dc2014cdf1
commit 22d2d7825f
1 file changed
+2 -1
@@ -37,6 +37,7 @@ public class IngredientNBT extends Ingredient
{
if (input == null)
return false;
return ItemStack.areItemStacksEqualUsingNBTShareTag(this.stack, input);
//Can't use areItemStacksEqualUsingNBTShareTag because it compares stack size as well
return this.stack.getItem() == input.getItem() && this.stack.getItemDamage() == input.getItemDamage() && ItemStack.areItemStackShareTagsEqual(this.stack, input);
}
}