We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 53ea7c1 + 2ab8f77 commit c29b33aCopy full SHA for c29b33a
1 file changed
modimporter.py
@@ -568,8 +568,8 @@ def isedited(base):
568
return True
569
return False
570
571
-def sortmods(base,mods):
572
- codes[base] = deque(sorted(codes[base],key=lambda x: x.ep))
+def sortmods(mods):
+ return sorted(mods,key=lambda x: x.ep)
573
574
def makeedit(base,mods,echo=True):
575
Path(bakdir+"/"+"/".join(base.split("/")[:-1])).mkdir(parents=True, exist_ok=True)
@@ -664,7 +664,7 @@ def start():
664
665
print("\nModified files for "+game+" mods:")
666
for base, mods in codes.items():
667
- sortmods(base,mods)
+ mods = sortmods(mods)
668
makeedit(base,mods)
669
670
bs = len(codes)
0 commit comments