mirror of
https://github.com/solero/houdini.git
synced 2024-11-25 15:07:24 +00:00
Fix bug where Puffle hats could not be removed
This commit is contained in:
parent
e61d5fb02c
commit
5bd4d35aee
@ -651,8 +651,8 @@ async def handle_set_puffle_handler(p):
|
|||||||
|
|
||||||
@handlers.handler(XTPacket('p', 'puphi'), client=ClientType.Vanilla)
|
@handlers.handler(XTPacket('p', 'puphi'), client=ClientType.Vanilla)
|
||||||
async def handle_puffle_visitor_hat_update(p, puffle: PenguinPuffle, hat_id: int):
|
async def handle_puffle_visitor_hat_update(p, puffle: PenguinPuffle, hat_id: int):
|
||||||
if hat_id in p.puffle_items:
|
if hat_id in p.puffle_items or hat_id == 0:
|
||||||
await puffle.update(hat=hat_id).apply()
|
await puffle.update(hat=hat_id if hat_id > 0 else None).apply()
|
||||||
await p.room.send_xt('puphi', puffle.id, hat_id)
|
await p.room.send_xt('puphi', puffle.id, hat_id)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user