mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Fixed type specification being too strict.
This was causing every recipe (including an empty grid) to return refined obsidian.
This commit is contained in:
1 parent
ac39b6fabe
commit
080e077aa1
1 file changed
+3
-2
@@ -1,6 +1,7 @@
|
||||
package mekanism.common.recipe;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
|
||||
import mekanism.common.Mekanism;
|
||||
@@ -212,11 +213,11 @@ public class ShapedMekanismRecipe implements IRecipe
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if(target instanceof ArrayList)
|
||||
else if(target instanceof Iterable)
|
||||
{
|
||||
boolean matched = false;
|
||||
|
||||
for(ItemStack item : (ArrayList<ItemStack>)target)
|
||||
for(ItemStack item : (Iterable<ItemStack>)target)
|
||||
{
|
||||
matched = matched || RecipeUtils.areItemsEqualForCrafting(item, slot);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user