From 9728466fa6778481116d811c2d39f42f4da193a6 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sun, 14 May 2023 19:44:29 +0300 Subject: [PATCH] 1 --- hlna.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hlna.py b/hlna.py index 53433e2..72a4693 100755 --- a/hlna.py +++ b/hlna.py @@ -487,8 +487,8 @@ def modextract(id_mod, id_game_workshop): modname = re.search(r'
(.+)
', modname) modname = modname and modname.group(1) - if os.path.isfile(f"{dir_ark_mods}/.mod"): - os.remove(f"{dir_ark_mods}/.mod") + if os.path.isfile(f"{dir_ark_mods}.mod"): + os.remove(f"{dir_ark_mods}.mod") modfile_bytes = b'' with open(os.path.join(dir_ark_mods, 'mod.info'), 'rb') as f: @@ -513,6 +513,7 @@ def modextract(id_mod, id_game_workshop): modfile_bytes += struct.pack('