Fixes #1973: 9th slot of ME Interface ignored work
This commit is contained in:
parent
faaff58fde
commit
e922bf02d4
|
@ -366,9 +366,24 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasWorkToDo()
|
private boolean hasWorkToDo()
|
||||||
{
|
{
|
||||||
return this.hasItemsToSend() || this.requireWork[0] != null || this.requireWork[1] != null || this.requireWork[2] != null || this.requireWork[3] != null || this.requireWork[4] != null || this.requireWork[5] != null || this.requireWork[6] != null || this.requireWork[7] != null;
|
if( this.hasItemsToSend() )
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for( final IAEItemStack requiredWork : this.requireWork )
|
||||||
|
{
|
||||||
|
if( requiredWork != null )
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updatePlan( final int slot )
|
private void updatePlan( final int slot )
|
||||||
|
@ -1247,9 +1262,9 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
|
||||||
{
|
{
|
||||||
super( v );
|
super( v );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private class InterfaceInventory extends MEMonitorIInventory
|
private class InterfaceInventory extends MEMonitorIInventory
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1281,5 +1296,4 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
|
||||||
return super.extractItems( request, type, src );
|
return super.extractItems( request, type, src );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue