mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 07:16:31 +01:00
Fixed creation function that caused entities to be wrong-named in certain circumstances. Server now starts and shutsdown without tracebacks.
This commit is contained in:
parent
3d557f6bf9
commit
0b01df1fcc
3 changed files with 9 additions and 6 deletions
|
|
@ -859,8 +859,9 @@ class DefaultObject(ObjectDB):
|
|||
cdict = self._createdict
|
||||
updates = []
|
||||
if not cdict["key"]:
|
||||
self.db_key = "#%i" % self.dbid
|
||||
updates.append("db_key")
|
||||
if not self.db_key:
|
||||
self.db_key = "#%i" % self.dbid
|
||||
updates.append("db_key")
|
||||
elif self.key != cdict["key"]:
|
||||
updates.append("db_key")
|
||||
self.db_key = cdict["key"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue