fix (?) weird substitution items on crafting tree

This commit is contained in:
PrototypeTrousers
2022-04-04 03:20:21 -03:00
parent 1e9e8d2639
commit 7c0935f447
2 changed files with 7 additions and 1 deletions
@@ -108,6 +108,10 @@ public class CraftingTreeProcess
{
remaining = found.getStackSize();
}
else
{
remaining = 0;
}
if( remaining > 0 )
{
@@ -124,6 +128,7 @@ public class CraftingTreeProcess
}
subs = subs.copy().setStackSize( requestAmount );
this.nodes.put( new CraftingTreeNode( cc, job, subs, this, x, depth + 1 ), requestAmount );
job.checkUse( subs );
if( wantedSize == 0 )
{
break;
@@ -155,6 +160,7 @@ public class CraftingTreeProcess
}
part = part.copy().setStackSize( requestAmount );
this.nodes.put( new CraftingTreeNode( cc, job, part, this, x, depth + 1 ), requestAmount );
job.checkUse( part );
}
}
}