mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Loads more work on Formulaic Assemblicators. Seem to be about polished!
This commit is contained in:
1 parent
779c2c49e7
commit
9c8e392638
7 files changed
+119
-57
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package mekanism.common.util;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
@@ -267,8 +268,12 @@ public class RecipeUtils
|
||||
|
||||
public static IRecipe getRecipeFromGrid(InventoryCrafting inv, World world)
|
||||
{
|
||||
for(IRecipe recipe : (List<IRecipe>)CraftingManager.getInstance().getRecipeList())
|
||||
List<IRecipe> list = new ArrayList<IRecipe>(CraftingManager.getInstance().getRecipeList());
|
||||
|
||||
for(Iterator<IRecipe> iter = list.iterator(); iter.hasNext();)
|
||||
{
|
||||
IRecipe recipe = iter.next();
|
||||
|
||||
if(recipe.matches(inv, world))
|
||||
{
|
||||
return recipe;
|
||||
|
||||
Reference in new issue
Block a user