Remove return statement from handle_buy_inventory

This commit is contained in:
Ben 2020-01-02 23:15:16 +00:00
parent a521395e80
commit b507ae13d4

View File

@ -68,12 +68,12 @@ async def handle_buy_inventory(p, item: Item):
if item.id in p.inventory: if item.id in p.inventory:
return await p.send_error(400) return await p.send_error(400)
if item.tour:
return await p.add_inbox(p.server.postcards[126])
if p.coins < item.cost: if p.coins < item.cost:
return await p.send_error(401) return await p.send_error(401)
if item.tour:
await p.add_inbox(p.server.postcards[126])
await p.add_inventory(item) await p.add_inventory(item)