From 1dc3bf9f346af0556c9c47405cfa7b513ebcab15 Mon Sep 17 00:00:00 2001 From: rsakeys Date: Mon, 2 Mar 2020 19:20:27 +0000 Subject: [PATCH] Only emit handler when disconnecting from the world servers --- houdini/handlers/play/pet.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/houdini/handlers/play/pet.py b/houdini/handlers/play/pet.py index 6aba114..e16a948 100644 --- a/houdini/handlers/play/pet.py +++ b/houdini/handlers/play/pet.py @@ -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)