mirror of
https://github.com/solero/houdini.git
synced 2024-11-08 20:28:20 +00:00
Remove return statement from handle_buy_inventory
This commit is contained in:
parent
a521395e80
commit
b507ae13d4
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user