mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fix exit order sorting sometimes being incorrect for exits not in the sort order
This commit is contained in:
parent
7f41e5a649
commit
c0d7de79b7
1 changed files with 1 additions and 1 deletions
|
|
@ -1595,7 +1595,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
return names
|
||||
sort_index = {name: key for key, name in enumerate(exit_order)}
|
||||
names = sorted(names)
|
||||
end_pos = len(names) + 1
|
||||
end_pos = len(sort_index)
|
||||
names.sort(key=lambda name: sort_index.get(name, end_pos))
|
||||
return names
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue