From 5bd4d35aee264e6b1951b35874e2f19095716168 Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 21 Jun 2020 15:49:46 +0100 Subject: [PATCH] Fix bug where Puffle hats could not be removed --- houdini/handlers/play/pet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/houdini/handlers/play/pet.py b/houdini/handlers/play/pet.py index 73e2a74..1671dd8 100644 --- a/houdini/handlers/play/pet.py +++ b/houdini/handlers/play/pet.py @@ -651,8 +651,8 @@ async def handle_set_puffle_handler(p): @handlers.handler(XTPacket('p', 'puphi'), client=ClientType.Vanilla) async def handle_puffle_visitor_hat_update(p, puffle: PenguinPuffle, hat_id: int): - if hat_id in p.puffle_items: - await puffle.update(hat=hat_id).apply() + if hat_id in p.puffle_items or hat_id == 0: + await puffle.update(hat=hat_id if hat_id > 0 else None).apply() await p.room.send_xt('puphi', puffle.id, hat_id)