From b507ae13d42ad0c9a8963e3b3ae36fef053c05d9 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 2 Jan 2020 23:15:16 +0000 Subject: [PATCH] Remove return statement from `handle_buy_inventory` --- houdini/handlers/play/item.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/houdini/handlers/play/item.py b/houdini/handlers/play/item.py index 5dbd1e1..7da5cdc 100644 --- a/houdini/handlers/play/item.py +++ b/houdini/handlers/play/item.py @@ -68,12 +68,12 @@ async def handle_buy_inventory(p, item: Item): if item.id in p.inventory: return await p.send_error(400) - if item.tour: - return await p.add_inbox(p.server.postcards[126]) - if p.coins < item.cost: return await p.send_error(401) + if item.tour: + await p.add_inbox(p.server.postcards[126]) + await p.add_inventory(item)