Fix rename

This commit is contained in:
ChillerDragon 2023-03-29 14:54:21 +02:00
parent 0131390285
commit 14fd5f2b40
2 changed files with 1 additions and 3 deletions

View file

@ -44,8 +44,6 @@ from twnet_parser.net_message import NetMessage
"""
msg: GameMessageJson
for msg in game_messages:
name_snake = name_to_snake(msg['name'])

View file

@ -26,7 +26,7 @@ class MessageParser():
def parse_game_message(self, msg_id: int, data: bytes) -> NetMessage:
if msg_id == twnet_parser.msg7.SV_MOTD:
return TodoMessage('sv_motd')
if msg_id == twnet_parser.msg7.SV_SERVERSETTINGS:
if msg_id == twnet_parser.msg7.SV_SERVER_SETTINGS:
return TodoMessage('sv_server_settings')
raise ValueError(f"Error: unknown message game.id={msg_id} data={data[0]}")
def parse_sys_message(self, msg_id: int, data: bytes) -> NetMessage: