Sort dependencies to avoid changes on regen
Seems like the set has different orders when running the generate script multiple times this causes all game message class files to change
This commit is contained in:
parent
e0203ebc78
commit
a19df04b80
|
@ -276,7 +276,7 @@ def get_dependencies(msg: NetMessageJson) -> str:
|
|||
if len(packer_deps) == 0:
|
||||
return ''
|
||||
return 'from twnet_parser.packer import ' + \
|
||||
', '.join(set(packer_deps)) + '\n'
|
||||
', '.join(sorted(set(packer_deps))) + '\n'
|
||||
|
||||
def pack_field(member: NetMessageMemberJson) -> str:
|
||||
name: str = name_to_snake(member["name"])
|
||||
|
|
Loading…
Reference in a new issue