mirror of
https://github.com/solero/houdini.git
synced 2024-12-22 13:33:39 +00:00
Reduce cooldown on room join to 0.5s
This commit is contained in:
parent
77a5e1ea23
commit
4c07c63f9b
@ -127,7 +127,7 @@ async def room_cooling(p):
|
||||
|
||||
|
||||
@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):
|
||||
if p.is_legacy_client and room.tables:
|
||||
await p.send_xt('jr', room.id)
|
||||
|
Loading…
Reference in New Issue
Block a user