Correct check for if the furniture is already in the players inventory.

This commit is contained in:
rsakeys 2020-03-03 15:58:49 +00:00
parent e94993a71f
commit 3deba275fe

View File

@ -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: