Fix OreIngredient comparing items in reverse. Closes #3999
This commit is contained in:
parent
50e268bdf5
commit
e16f70f95e
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue