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

This commit is contained in:
ichttt 2017-09-23 23:25:45 +02:00 committed by mezz
parent dc2014cdf1
commit 22d2d7825f
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}