fix container items return properly

This commit is contained in:
PrototypeTrousers
2022-03-05 11:15:32 -03:00
parent 447c6debab
commit 3a83c99b1f
2 changed files with 6 additions and 19 deletions
@@ -311,6 +311,12 @@ public class CraftingTreeProcess
}
}
if( containerItems != null) {
for (IAEItemStack i : containerItemsList) {
inv.injectItems(i, Actionable.MODULATE, src);
}
}
// assume its possible.
// add crafting results..
@@ -323,15 +329,6 @@ public class CraftingTreeProcess
this.crafts += amountOfTimes;
}
public List<IAEItemStack> getReturnedContainers()
{
if( containerItemsList == null )
{
return Collections.emptyList();
}
return containerItemsList;
}
void dive( final CraftingJob job )
{
job.addTask( this.getAmountCrafted( this.parent.getStack( 1 ) ), this.crafts, this.details, this.depth );