fix (?) weird substitution items on crafting tree
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ aebuild=7
|
|||||||
aegroup=appeng
|
aegroup=appeng
|
||||||
aebasename=appliedenergistics2
|
aebasename=appliedenergistics2
|
||||||
extended=extended_life
|
extended=extended_life
|
||||||
extendedversion=v51g
|
extendedversion=v51i
|
||||||
#########################################################
|
#########################################################
|
||||||
# Versions #
|
# Versions #
|
||||||
#########################################################
|
#########################################################
|
||||||
|
|||||||
@@ -108,6 +108,10 @@ public class CraftingTreeProcess
|
|||||||
{
|
{
|
||||||
remaining = found.getStackSize();
|
remaining = found.getStackSize();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
remaining = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if( remaining > 0 )
|
if( remaining > 0 )
|
||||||
{
|
{
|
||||||
@@ -124,6 +128,7 @@ public class CraftingTreeProcess
|
|||||||
}
|
}
|
||||||
subs = subs.copy().setStackSize( requestAmount );
|
subs = subs.copy().setStackSize( requestAmount );
|
||||||
this.nodes.put( new CraftingTreeNode( cc, job, subs, this, x, depth + 1 ), requestAmount );
|
this.nodes.put( new CraftingTreeNode( cc, job, subs, this, x, depth + 1 ), requestAmount );
|
||||||
|
job.checkUse( subs );
|
||||||
if( wantedSize == 0 )
|
if( wantedSize == 0 )
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
@@ -155,6 +160,7 @@ public class CraftingTreeProcess
|
|||||||
}
|
}
|
||||||
part = part.copy().setStackSize( requestAmount );
|
part = part.copy().setStackSize( requestAmount );
|
||||||
this.nodes.put( new CraftingTreeNode( cc, job, part, this, x, depth + 1 ), requestAmount );
|
this.nodes.put( new CraftingTreeNode( cc, job, part, this, x, depth + 1 ), requestAmount );
|
||||||
|
job.checkUse( part );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user