Reduce cooldown on room join to 0.5s

This commit is contained in:
Ben 2020-07-01 00:14:31 +01:00
parent 77a5e1ea23
commit 4c07c63f9b

View File

@ -127,7 +127,7 @@ async def room_cooling(p):
@handlers.handler(XTPacket('j', 'jr')) @handlers.handler(XTPacket('j', 'jr'))
@handlers.cooldown(1, callback=room_cooling) @handlers.cooldown(0.5, callback=room_cooling)
async def handle_join_room(p, room: Room, x: int, y: int): async def handle_join_room(p, room: Room, x: int, y: int):
if p.is_legacy_client and room.tables: if p.is_legacy_client and room.tables:
await p.send_xt('jr', room.id) await p.send_xt('jr', room.id)