From 8244ae09aca1f73ba4e47d54dd8b3659fe3c6c97 Mon Sep 17 00:00:00 2001 From: Jerrk <49324581+Jerrk@users.noreply.github.com> Date: Wed, 13 Apr 2022 10:37:04 +0000 Subject: [PATCH] fixes "Please use force_install_dir before logon!" warning fixes #66 --- src/Commands/Steam/StartDownloading.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/Steam/StartDownloading.php b/src/Commands/Steam/StartDownloading.php index 8be142b..0c9e8ad 100644 --- a/src/Commands/Steam/StartDownloading.php +++ b/src/Commands/Steam/StartDownloading.php @@ -59,9 +59,9 @@ public function handle() $downloadPath = getenv('DOWNLOADS_DIRECTORY') . '/' . $item->platform . '/' . $item->app_id; $steamCmd = (new SteamCmd(getenv('STEAMCMD_PATH'))) + ->directory($downloadPath) ->login($account) ->platform($item->platform) - ->directory($downloadPath) ->update($item->app_id) ->run(); @@ -241,4 +241,4 @@ private function displayAccountNotAuthorisedError(string $account) $this->comment('- Temporarily disable Steam Site License server, if you\'re using it'); $this->info(''); } -} \ No newline at end of file +}