Fixed DriverWatcher constantly calling blinkCell instead when changed.
This commit is contained in:
parent
7f02562e0c
commit
005392911d
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue