diff --git a/utilities/compatiblizemod.py b/utilities/compatiblizemod.py index a3f6dae..1b3dec8 100755 --- a/utilities/compatiblizemod.py +++ b/utilities/compatiblizemod.py @@ -21,9 +21,11 @@ def add_depends(mod_path): # shutil.copy(modpack_conf, modpack_txt) with open(modpack_txt, 'w') as outs: wroteCount = 0 + lineN = 0 with open(modpack_conf, 'r') as ins: for rawL in ins: - line = line.strip() + lineN += 1 # Start counting at 1. + line = rawL.strip() signI = line.find("=") if signI < 1: continue