Fix OreIngredient comparing items in reverse. Closes #3999

This commit is contained in:
LexManos 2017-06-15 13:13:44 -07:00
parent 50e268bdf5
commit e16f70f95e

View file

@ -66,13 +66,13 @@ public class OreIngredient extends Ingredient
}
public boolean apply(@Nullable ItemStack target)
public boolean apply(@Nullable ItemStack input)
{
if (target == null)
if (input == null)
return false;
for (ItemStack ore : this.ores)
if (OreDictionary.itemMatches(target, ore, false))
for (ItemStack target : this.ores)
if (OreDictionary.itemMatches(target, input, false))
return true;
return false;