mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix OreIngredient comparing items in reverse. Closes #3999
This commit is contained in:
1 parent
50e268bdf5
commit
e16f70f95e
1 file changed
+4
-4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user