From e1bf16aa9607b7112410fe3dfbe699b6e97596f3 Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Sat, 18 Jun 2022 17:25:33 +0200 Subject: [PATCH] None abgefangen. --- ActionModul.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ActionModul.py b/ActionModul.py index a476cb0..c7916ac 100644 --- a/ActionModul.py +++ b/ActionModul.py @@ -218,6 +218,10 @@ class ActionModul(ActionBasics): def schlage(self, parsedCommand): item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand) + if item == None: + self.setFehler('Das sehe ich hier nicht.') + return + if item.id == self.world.ITEM_BOXSACK: self.setFehler('Der Boxsack sagt: Hmm, hmm?')