Fixed the order craftinglinks are notified for the last item.

Fixes #1833
This commit is contained in:
yueh
2015-08-28 13:29:24 +02:00
parent 5dfca5eb93
commit 40dcf711f6
2 changed files with 157 additions and 133 deletions
+3 -3
View File
@@ -314,9 +314,9 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
{
this.craftingCPUClusters.add( cluster );
if( cluster.myLastLink != null )
if( cluster.getLastCraftingLink() != null )
{
this.addLink( (CraftingLink) cluster.myLastLink );
this.addLink( (CraftingLink) cluster.getLastCraftingLink() );
}
}
}
@@ -641,7 +641,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
while( this.iterator.hasNext() && this.cpuCluster == null )
{
this.cpuCluster = this.iterator.next();
if( !this.cpuCluster.isActive() || this.cpuCluster.isDestroyed )
if( !this.cpuCluster.isActive() || this.cpuCluster.isDestroyed() )
{
this.cpuCluster = null;
}