mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 17:56:32 +01:00
Bugfix for latest optimization.
This commit is contained in:
parent
5b88972523
commit
dc4340b34e
1 changed files with 2 additions and 2 deletions
|
|
@ -275,7 +275,7 @@ class ObjectDB(TypedObject):
|
|||
def __location_set(self, location):
|
||||
"Setter. Allows for self.location = location"
|
||||
try:
|
||||
old_loc = _GA(_GA(self, "location"), "dbobj")
|
||||
old_loc = _GA(self, "location")
|
||||
|
||||
if ObjectDB.objects.dbref(location):
|
||||
# dbref search
|
||||
|
|
@ -288,7 +288,7 @@ class ObjectDB(TypedObject):
|
|||
_set_cache(self, "location", loc)
|
||||
# update the contents of each location
|
||||
if old_loc:
|
||||
_GA(old_loc, "contents_update")(self, remove=True)
|
||||
_GA(_GA(old_loc, "dbobj"), "contents_update")(self, remove=True)
|
||||
if loc:
|
||||
_GA(loc, "contents_update")(_GA(self, "typeclass"))
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue