Reduced drive update rate. (#2574)

Limits drive updates to modulate.
Code cleanup of the TileDrive.
This commit is contained in:
yueh
2016-11-05 19:28:09 +01:00
committed by GitHub
parent 4253d659f1
commit fe1a67ffaa
2 changed files with 29 additions and 41 deletions
@@ -52,7 +52,7 @@ public class DriveWatcher<T extends IAEStack<T>> extends MEInventoryHandler<T>
final T a = super.injectItems( input, type, src );
if( a == null || a.getStackSize() != size )
if( type == Actionable.MODULATE && ( a == null || a.getStackSize() != size ) )
{
final int newStatus = this.handler.getStatusForCell( this.is, this.getInternal() );
@@ -71,7 +71,7 @@ public class DriveWatcher<T extends IAEStack<T>> extends MEInventoryHandler<T>
{
final T a = super.extractItems( request, type, src );
if( a != null )
if( type == Actionable.MODULATE && a != null )
{
final int newStatus = this.handler.getStatusForCell( this.is, this.getInternal() );