Storage Buses no longer assume an inventory can be accessed just because it implements IInventory.
This commit is contained in:
@@ -22,9 +22,11 @@ public class ExternalIInv implements IExternalStorageHandler
|
||||
@Override
|
||||
public IMEInventory getInventory(TileEntity te, ForgeDirection d, StorageChannel channel, BaseActionSource src)
|
||||
{
|
||||
if ( channel == StorageChannel.ITEMS && te instanceof IInventory )
|
||||
return new MEMonitorIInventory( InventoryAdaptor.getAdaptor( (IInventory) te, d ) );
|
||||
|
||||
InventoryAdaptor ad = InventoryAdaptor.getAdaptor( (IInventory) te, d );
|
||||
|
||||
if ( channel == StorageChannel.ITEMS && ad != null )
|
||||
return new MEMonitorIInventory( ad );
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user