Fixed Multi Recipe Bugs.
This commit is contained in:
@@ -158,7 +158,7 @@ public class CraftingTreeNode
|
|||||||
{
|
{
|
||||||
while (pro.possible && l > 0)
|
while (pro.possible && l > 0)
|
||||||
{
|
{
|
||||||
MECraftingInventory subInv = new MECraftingInventory( inv );
|
MECraftingInventory subInv = new MECraftingInventory( inv, true, true, true );
|
||||||
pro.request( subInv, 1, src );
|
pro.request( subInv, 1, src );
|
||||||
subInv.commit( src );
|
subInv.commit( src );
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-2
@@ -9,7 +9,6 @@ import java.util.Iterator;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.TreeSet;
|
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.Future;
|
import java.util.concurrent.Future;
|
||||||
@@ -242,7 +241,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
|
|||||||
Set<ICraftingPatternDetails> methods = tmpCraft.get( out );
|
Set<ICraftingPatternDetails> methods = tmpCraft.get( out );
|
||||||
|
|
||||||
if ( methods == null )
|
if ( methods == null )
|
||||||
tmpCraft.put( out, methods = new TreeSet() );
|
tmpCraft.put( out, methods = new HashSet() );
|
||||||
|
|
||||||
methods.add( details );
|
methods.add( details );
|
||||||
sg.postAlterationOfStoredItems( StorageChannel.ITEMS, out, new BaseActionSource() );
|
sg.postAlterationOfStoredItems( StorageChannel.ITEMS, out, new BaseActionSource() );
|
||||||
|
|||||||
Reference in New Issue
Block a user