From 4086f35f9752370caeb4a30fc00ec87d3cba7e94 Mon Sep 17 00:00:00 2001 From: InspectorCaracal <51038201+InspectorCaracal@users.noreply.github.com> Date: Sat, 10 Jun 2023 16:27:14 -0600 Subject: [PATCH] patch container-contrib look --- .../game_systems/containers/containers.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/evennia/contrib/game_systems/containers/containers.py b/evennia/contrib/game_systems/containers/containers.py index 27024a62ad..67c9494314 100644 --- a/evennia/contrib/game_systems/containers/containers.py +++ b/evennia/contrib/game_systems/containers/containers.py @@ -131,15 +131,16 @@ class CmdContainerLook(CmdLook): if not target: self.msg("You have no location to look at!") return - elif self.rhs: - # we are looking in something, find that first - container = caller.search(self.rhs) - if not container: - return + else: + if self.rhs: + # we are looking in something, find that first + container = caller.search(self.rhs) + if not container: + return - target = caller.search(self.lhs, location=container) - if not target: - return + target = caller.search(self.lhs, location=container) + if not target: + return desc = caller.at_look(target) # add the type=look to the outputfunc to make it