Interfaces now slow down with failed crafting attempts.
Cleanup of unneeded tracking of failed attempts of MultiCraftingTracker. Followup of #1905
This commit is contained in:
@@ -46,7 +46,6 @@ public class MultiCraftingTracker
|
||||
|
||||
private Future<ICraftingJob>[] jobs = null;
|
||||
private ICraftingLink[] links = null;
|
||||
private int failedCraftingAttempts = 0;
|
||||
|
||||
public MultiCraftingTracker( final ICraftingRequester o, final int size )
|
||||
{
|
||||
@@ -54,11 +53,6 @@ public class MultiCraftingTracker
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public int getFailedCraftingAttempts()
|
||||
{
|
||||
return this.failedCraftingAttempts;
|
||||
}
|
||||
|
||||
public void readFromNBT( final NBTTagCompound extra )
|
||||
{
|
||||
for( int x = 0; x < this.size; x++ )
|
||||
@@ -116,15 +110,10 @@ public class MultiCraftingTracker
|
||||
|
||||
if( link != null )
|
||||
{
|
||||
this.failedCraftingAttempts = Math.max( 0, this.failedCraftingAttempts - 1 );
|
||||
|
||||
this.setLink( x, link );
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.failedCraftingAttempts = Math.min( 10, this.failedCraftingAttempts + 1 );
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch( final InterruptedException e )
|
||||
|
||||
Reference in New Issue
Block a user