mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Resolves traceback error when object is moved to a room rather than a player from None location.
This commit is contained in:
parent
47fa88e0fc
commit
4639ed8f7e
1 changed files with 2 additions and 2 deletions
|
|
@ -1186,13 +1186,13 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
|||
self.location.msg(string)
|
||||
return
|
||||
|
||||
string = "%s arrives to %s from %s."
|
||||
string = "%s arrives to %s%s."
|
||||
location = self.location
|
||||
for obj in self.location.contents:
|
||||
if obj != self:
|
||||
obj.msg(string % (self.get_display_name(obj),
|
||||
location.get_display_name(obj) if location else "nowhere",
|
||||
source_location.get_display_name(obj)))
|
||||
" from %s" % source_location.get_display_name(obj) if source_location else ""))
|
||||
|
||||
def at_after_move(self, source_location):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue