Fixed Multi Recipe Bugs.
This commit is contained in:
parent
4bc881e447
commit
502235dd42
2 changed files with 2 additions and 3 deletions
|
@ -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 );
|
||||||
|
|
||||||
|
|
3
me/cache/CraftingGridCache.java
vendored
3
me/cache/CraftingGridCache.java
vendored
|
@ -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() );
|
||||||
|
|
Loading…
Reference in a new issue