mirror of
https://github.com/solero/houdini.git
synced 2024-11-08 20:28:20 +00:00
Only emit handler when disconnecting from the world servers
This commit is contained in:
parent
c171c75cb3
commit
1dc3bf9f34
@ -451,8 +451,9 @@ async def handle_wear_puffle(p, item_id: int):
|
||||
@handlers.disconnected
|
||||
@handlers.player_attribute(client_type=ClientType.Legacy)
|
||||
async def handle_stop_walking(p):
|
||||
if p.walking:
|
||||
await p.update(hand=None, walking=None).apply()
|
||||
if p.joined_world:
|
||||
if p.walking:
|
||||
await p.update(hand=None, walking=None).apply()
|
||||
|
||||
|
||||
@handlers.handler(XTPacket('p', 'pp'), client=ClientType.Vanilla)
|
||||
|
Loading…
Reference in New Issue
Block a user