Fixed the order craftinglinks are notified for the last item.
Fixes #1833
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user