Skip to content

Commit 0a1181b

Browse files
committedAug 21, 2022
Mod priority now properly handled when loading mods
1 parent b84eae6 commit 0a1181b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/d4m/manage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def load_mods(self, path: str) -> "list[DivaSimpleMod]":
155155
##now, order by priority
156156
for l in priority:
157157
for index, mod in enumerate(loaded):
158-
if mod.name == l:
158+
if os.path.basename(mod.path) == l:
159159
final.append(loaded.pop(index))
160160
break
161161

0 commit comments

Comments
 (0)
Please sign in to comment.