tweak crafting byte costs

This commit is contained in:
PrototypeTrousers
2021-11-02 17:54:54 -03:00
parent 81156b411d
commit b423d99879
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ aechannel=stable
aebuild=7 aebuild=7
aegroup=appeng aegroup=appeng
aebasename=appliedenergistics2 aebasename=appliedenergistics2
trousers=omni-fixes-v49c trousers=omni-fixes-v49d
######################################################### #########################################################
# Versions # # Versions #
@@ -238,7 +238,7 @@ public class CraftingTreeNode
if( available != null ) if( available != null )
{ {
this.bytes += available.getStackSize(); //this.bytes += available.getStackSize();
l -= available.getStackSize(); l -= available.getStackSize();
if( l <= 0 ) if( l <= 0 )
@@ -240,6 +240,7 @@ public class CraftingTreeProcess
final IAEItemStack o = out.copy(); final IAEItemStack o = out.copy();
o.setStackSize( o.getStackSize() * i ); o.setStackSize( o.getStackSize() * i );
inv.injectItems( o, Actionable.MODULATE, src ); inv.injectItems( o, Actionable.MODULATE, src );
this.bytes += o.getStackSize();
} }
this.crafts += i; this.crafts += i;
} }
@@ -252,7 +253,7 @@ public class CraftingTreeProcess
pro.dive( job ); pro.dive( job );
} }
job.addBytes( this.crafts * 8 + this.bytes ); job.addBytes( this.crafts + 8 + this.bytes );
} }
IAEItemStack getAmountCrafted( IAEItemStack what2 ) IAEItemStack getAmountCrafted( IAEItemStack what2 )