243244245246247248249250251
} if( inventory instanceof IInventory ) { return new LinearInventory( (IInventory) inventory ); } Utils.logException( "Invalid inventory adapter", new InvalidInventoryAdapterException( inventory.getClass() ), false ); } return null; }