aboutsummaryrefslogtreecommitdiff
path: root/modpackman.py
diff options
context:
space:
mode:
Diffstat (limited to 'modpackman.py')
-rwxr-xr-xmodpackman.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/modpackman.py b/modpackman.py
index f578db4..18cdecc 100755
--- a/modpackman.py
+++ b/modpackman.py
@@ -45,9 +45,7 @@ def install():
else:
print(f'Installing {name} from {url}...')
print(f' ({i} of {len(pack_lock["mod_versions"])})', end='\r')
- download_obj = requests.get(url, stream=True)
- with open(mod_path, "wb") as write_file:
- shutil.copyfileobj(download_obj.raw, write_file)
+ util.download_file(url, mod_path)
print("Done!" + " " * 8)
# Remove any old mods that might be stuck in the mods folder