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:
ChillerDragon 2023-03-31 09:53:51 +02:00
parent e0203ebc78
commit a19df04b80

View file

@ -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"])