mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
Workaround for buggy client dj3k track packet
This commit is contained in:
parent
11f68f1e89
commit
d2b8475e81
@ -565,9 +565,10 @@ async def handle_get_furniture_inventory(p):
|
||||
|
||||
|
||||
@handlers.handler(XTPacket('g', 'ggd'), client=ClientType.Vanilla)
|
||||
async def handle_get_dj3k_track(p, penguin_id: int, game_index: str):
|
||||
async def handle_get_dj3k_track(p, penguin_id: str, game_index: str):
|
||||
pid = int(penguin_id) if penguin_id.isdigit() else p.id
|
||||
room_id, index = game_index.split('|')
|
||||
game_data = await PenguinGameData.select('data').where((PenguinGameData.penguin_id == penguin_id) &
|
||||
game_data = await PenguinGameData.select('data').where((PenguinGameData.penguin_id == pid) &
|
||||
(PenguinGameData.room_id == int(room_id)) &
|
||||
(PenguinGameData.index == int(index))).gino.scalar()
|
||||
await p.send_xt('ggd', game_data or '')
|
||||
|
Loading…
Reference in New Issue
Block a user