fixed bug inv would not show due to illegal items

This commit is contained in:
lickthecheese 2020-04-06 21:50:59 -04:00
parent b4f4fefff8
commit e33708d70b
3 changed files with 1 additions and 1 deletions

View file

@ -57,7 +57,7 @@ async def invsee(self, c, n, m):
if len(it) < 1:
await self.message(c, 'you look through your kitchen and see nothing')
else:
await self.message(c, 'you look through your kitchen and see {}, with a combined value of ${}'.format(' '.join(it), sum([self.bakedGoods[i] for i in it])/10))
await self.message(c, 'you look through your kitchen and see {}, with a combined value of ${}'.format(' '.join(it), sum([self.bakedGoods[i] for i in it if i in self.bakedGoods])/10))
async def generate(self, c, n, m):
if int(random.uniform(0,20)) == 1: