Storage Bus no longer shows items that cannot be extracted.
This commit is contained in:
@@ -165,7 +165,7 @@ public class MEMonitorIInventory implements IMEInventory<IAEItemStack>, IMEMonit
|
||||
for (ItemSlot is : adaptor)
|
||||
{
|
||||
CachedItemStack old = memory.get( is.slot );
|
||||
ItemStack newIS = is == null ? null : is.getItemStack();
|
||||
ItemStack newIS = is == null || is.isExtractable == false ? null : is.getItemStack();
|
||||
ItemStack oldIS = old == null ? null : old.itemStack;
|
||||
|
||||
if ( isDiffrent( newIS, oldIS ) )
|
||||
|
||||
@@ -341,8 +341,12 @@ public class AdaptorIInventory extends InventoryAdaptor
|
||||
@Override
|
||||
public ItemSlot next()
|
||||
{
|
||||
is.slot = x;
|
||||
is.setItemStack( i.getStackInSlot( x++ ) );
|
||||
ItemStack iss = i.getStackInSlot( x );
|
||||
|
||||
is.isExtractable = canRemoveStackFromSlot( x, iss );
|
||||
is.setItemStack( iss );
|
||||
|
||||
is.slot = x++;
|
||||
return is;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@ public class ItemSlot
|
||||
private IAEItemStack aeitemstack;
|
||||
private ItemStack itemStack;
|
||||
|
||||
public boolean isExtractable;
|
||||
|
||||
public void setItemStack(ItemStack is)
|
||||
{
|
||||
aeitemstack = null;
|
||||
|
||||
Reference in New Issue
Block a user