Fix stacktrace when search returns a list
This commit is contained in:
parent
ea8f9253cc
commit
3bf63848dc
1 changed files with 2 additions and 0 deletions
|
|
@ -82,6 +82,8 @@ class Character(Object, GenderCharacter, ContribRPCharacter):
|
|||
self.msg("You wake up in a meadow with a strange dream of a bar...")
|
||||
self.delete_inv("typeclasses.drinkables.Cocktail")
|
||||
meadow = self.search("Frog Meadow", global_search=True, quiet=True)
|
||||
if isinstance(meadow, list):
|
||||
meadow = meadow[0]
|
||||
self.move_to(meadow, quiet=True, use_destination=True)
|
||||
self.execute_cmd("look")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue