mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Unbind Shaped/Shapeless Ore Recipies from Array list to normal List.
This commit is contained in:
1 parent
f9955efb08
commit
08960ffb7b
2 files changed
+5
-5
No files matched your search
@@ -1,6 +1,6 @@
|
||||
package net.minecraftforge.oredict;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
@@ -215,11 +215,11 @@ public class ShapedOreRecipe implements IRecipe
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (target instanceof ArrayList)
|
||||
else if (target instanceof List)
|
||||
{
|
||||
boolean matched = false;
|
||||
|
||||
Iterator<ItemStack> itr = ((ArrayList<ItemStack>)target).iterator();
|
||||
Iterator<ItemStack> itr = ((List<ItemStack>)target).iterator();
|
||||
while (itr.hasNext() && !matched)
|
||||
{
|
||||
matched = OreDictionary.itemMatches(itr.next(), slot, false);
|
||||
|
||||
@@ -110,9 +110,9 @@ public class ShapelessOreRecipe implements IRecipe
|
||||
{
|
||||
match = OreDictionary.itemMatches((ItemStack)next, slot, false);
|
||||
}
|
||||
else if (next instanceof ArrayList)
|
||||
else if (next instanceof List)
|
||||
{
|
||||
Iterator<ItemStack> itr = ((ArrayList<ItemStack>)next).iterator();
|
||||
Iterator<ItemStack> itr = ((List<ItemStack>)next).iterator();
|
||||
while (itr.hasNext() && !match)
|
||||
{
|
||||
match = OreDictionary.itemMatches(itr.next(), slot, false);
|
||||
|
||||
Reference in new issue
Block a user