Fixed DriverWatcher constantly calling blinkCell instead when changed.

This commit is contained in:
yueh 2016-11-05 00:11:02 +01:00
parent 7f02562e0c
commit 005392911d
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,7 @@ import appeng.api.storage.data.IAEStack;
public class DriveWatcher<T extends IAEStack<T>> extends MEInventoryHandler<T>
{
private final int oldStatus = 0;
private int oldStatus = 0;
private final ItemStack is;
private final ICellHandler handler;
private final IChestOrDrive cord;
@ -59,6 +59,7 @@ public class DriveWatcher<T extends IAEStack<T>> extends MEInventoryHandler<T>
if( newStatus != this.oldStatus )
{
this.cord.blinkCell( this.getSlot() );
this.oldStatus = newStatus;
}
}
@ -77,6 +78,7 @@ public class DriveWatcher<T extends IAEStack<T>> extends MEInventoryHandler<T>
if( newStatus != this.oldStatus )
{
this.cord.blinkCell( this.getSlot() );
this.oldStatus = newStatus;
}
}