Crafting is virtually working 100%

This commit is contained in:
AlgorithmX2
2014-06-22 02:00:38 -05:00
parent 65e9e272c4
commit ff9a10b926
14 changed files with 323 additions and 68 deletions
+8 -2
View File
@@ -261,13 +261,19 @@ public class CraftingCache implements IGridCache, ICraftingProviderHelper, ICell
public boolean submitJob(CraftingJob job, CraftingCPUCluster target, BaseActionSource src)
{
if ( job.isSimulation() )
return false;
if ( target == null )
{
// TODO real stuff...
for (CraftingCPUCluster cpu : cpuClusters)
{
target = cpu;
break;
if ( !cpu.isBusy() )
{
target = cpu;
break;
}
}
}