Fix IngredientNBT comparing stackSize when checking if ingredient is valid (#4418)
This commit is contained in:
parent
dc2014cdf1
commit
22d2d7825f
|
@ -37,6 +37,7 @@ public class IngredientNBT extends Ingredient
|
||||||
{
|
{
|
||||||
if (input == null)
|
if (input == null)
|
||||||
return false;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue