try to fix #51
This commit is contained in:
@@ -305,7 +305,7 @@ public class CraftingTreeProcess
|
|||||||
|
|
||||||
void getPlan( final IItemList<IAEItemStack> plan )
|
void getPlan( final IItemList<IAEItemStack> plan )
|
||||||
{
|
{
|
||||||
for( IAEItemStack i : this.details.getCondensedOutputs() )
|
for( IAEItemStack i : this.details.getOutputs() )
|
||||||
{
|
{
|
||||||
i = i.copy();
|
i = i.copy();
|
||||||
i.setCountRequestable( i.getStackSize() * this.crafts );
|
i.setCountRequestable( i.getStackSize() * this.crafts );
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ public class PatternHelper implements ICraftingPatternDetails, Comparable<Patter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final int outputLength = this.isCrafting ? CRAFTING_OUTPUT_LIMIT : PROCESSING_OUTPUT_LIMIT;
|
final int outputLength = out.size();
|
||||||
|
|
||||||
this.inputs = in.toArray(new IAEItemStack[ALL_INPUT_LIMIT]);
|
this.inputs = in.toArray(new IAEItemStack[ALL_INPUT_LIMIT]);
|
||||||
this.outputs = out.toArray(new IAEItemStack[outputLength]);
|
this.outputs = out.toArray(new IAEItemStack[outputLength]);
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
|
|||||||
|
|
||||||
final ICraftingPatternDetails details = this.getPatternForItem( item, w );
|
final ICraftingPatternDetails details = this.getPatternForItem( item, w );
|
||||||
|
|
||||||
out = details != null ? details.getCondensedOutputs()[0].createItemStack() : ItemStack.EMPTY;
|
out = details != null ? details.getOutputs()[0].createItemStack() : ItemStack.EMPTY;
|
||||||
|
|
||||||
SIMPLE_CACHE.put( item, out );
|
SIMPLE_CACHE.put( item, out );
|
||||||
return out;
|
return out;
|
||||||
|
|||||||
+1
-1
@@ -296,7 +296,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
|
|||||||
// new craftables!
|
// new craftables!
|
||||||
for( final ICraftingPatternDetails details : this.craftingMethods.keySet() )
|
for( final ICraftingPatternDetails details : this.craftingMethods.keySet() )
|
||||||
{
|
{
|
||||||
for( IAEItemStack out : details.getCondensedOutputs() )
|
for( IAEItemStack out : details.getOutputs() )
|
||||||
{
|
{
|
||||||
out = out.copy();
|
out = out.copy();
|
||||||
out.reset();
|
out.reset();
|
||||||
|
|||||||
Reference in New Issue
Block a user