mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +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.disconnected
|
||||||
@handlers.player_attribute(client_type=ClientType.Legacy)
|
@handlers.player_attribute(client_type=ClientType.Legacy)
|
||||||
async def handle_stop_walking(p):
|
async def handle_stop_walking(p):
|
||||||
if p.walking:
|
if p.joined_world:
|
||||||
await p.update(hand=None, walking=None).apply()
|
if p.walking:
|
||||||
|
await p.update(hand=None, walking=None).apply()
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XTPacket('p', 'pp'), client=ClientType.Vanilla)
|
@handlers.handler(XTPacket('p', 'pp'), client=ClientType.Vanilla)
|
||||||
|
Loading…
Reference in New Issue
Block a user