Update navigation.py

- use await syntax to load playerstring
This commit is contained in:
ro 2019-06-05 18:08:55 +02:00 committed by GitHub
parent 8ab04bc1e9
commit 9201d68cdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ async def handle_join_server(p, penguin_id: int, login_key: str, lang: str):
penguin_standard_time = current_time * 1000
server_time_offset = 7
await p.send_xt('lp', p.server.penguin_string_compiler.compile(p), p.data.coins, 0, 1440,
await p.send_xt('lp', await p.server.penguin_string_compiler.compile(p), p.data.coins, 0, 1440,
penguin_standard_time, p.age, 0, p.data.minutes_played, None, server_time_offset, 1, 0, 211843)
spawn = random.choice(p.server.spawn_rooms)