mirror of
https://github.com/solero/houdini.git
synced 2024-11-09 20:58:20 +00:00
Correct check for if the furniture is already in the players inventory.
This commit is contained in:
parent
e94993a71f
commit
3deba275fe
@ -265,7 +265,7 @@ async def handle_buy_furniture(p, furniture: Furniture):
|
||||
if furniture is None:
|
||||
return await p.send_error(402)
|
||||
|
||||
if furniture.id in p.igloos:
|
||||
if furniture.id in p.furniture:
|
||||
return await p.send_error(400)
|
||||
|
||||
if p.coins < furniture.cost:
|
||||
|
Loading…
Reference in New Issue
Block a user