item costs/ghost fixes

This commit is contained in:
PrototypeTrousers
2021-11-29 00:50:32 -03:00
parent c34176f392
commit 85dc8ae7c1
4 changed files with 4 additions and 3 deletions
@@ -238,7 +238,7 @@ public class CraftingTreeNode
if( available != null )
{
//this.bytes += available.getStackSize();
this.bytes += available.getStackSize();
l -= available.getStackSize();
if( l <= 0 )
@@ -240,7 +240,6 @@ public class CraftingTreeProcess
final IAEItemStack o = out.copy();
o.setStackSize( o.getStackSize() * i );
inv.injectItems( o, Actionable.MODULATE, src );
this.bytes += o.getStackSize();
}
this.crafts += i;
}
+2
View File
@@ -248,6 +248,8 @@ public class GridStorageCache implements IStorageGrid
}
}
this.storageMonitors.forEach( ( channel, monitor ) -> monitor.forceUpdate() );
tracker.applyChanges();
}