]> git.ayabusa.dev Git - a-la-carte.git/commitdiff
fixed bug where items would disappear
authorayabusa <lebgpub@gmail.com>
Tue, 24 Dec 2024 07:54:20 +0000 (08:54 +0100)
committerayabusa <lebgpub@gmail.com>
Tue, 24 Dec 2024 07:54:20 +0000 (08:54 +0100)
src/game.py

index d6523b9b328693e706b65855e161eaf7243e4f2e..6b4c4d4643d930d7babe88d762fc9eaf0efa8659 100644 (file)
@@ -244,6 +244,8 @@ class Game:
                     if n not in self.map[ely][elx][1].a_ingredients:
                         self.map[ely][elx][1].a_ingredients.append(n)
                         self.map[ely][elx][1].render(elx*40,ely*40+40,2)
+                    else: return holding
+                else: return holding
                 return None
             else:
                 return holding