Fixes #1973: 9th slot of ME Interface ignored work
This commit is contained in:
parent
8f1d22b863
commit
c1b966eea1
|
@ -365,9 +365,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 )
|
||||||
|
@ -1248,9 +1263,9 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
|
||||||
{
|
{
|
||||||
super( v );
|
super( v );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private class InterfaceInventory extends MEMonitorIInventory
|
private class InterfaceInventory extends MEMonitorIInventory
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1282,5 +1297,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