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

View file

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