Merge pull request #3507 from chiizujin/prototype_cache
Fix protoype object updates changing cached prototype
This commit is contained in:
commit
964e2af71e
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ def prototype_from_object(obj):
|
||||||
prot["prototype_locks"] = "spawn:all();edit:all()"
|
prot["prototype_locks"] = "spawn:all();edit:all()"
|
||||||
prot["prototype_tags"] = []
|
prot["prototype_tags"] = []
|
||||||
else:
|
else:
|
||||||
prot = prot[0]
|
prot = prot[0].copy()
|
||||||
|
|
||||||
prot["key"] = obj.db_key or hashlib.md5(bytes(str(time.time()), "utf-8")).hexdigest()[:6]
|
prot["key"] = obj.db_key or hashlib.md5(bytes(str(time.time()), "utf-8")).hexdigest()[:6]
|
||||||
prot["typeclass"] = obj.db_typeclass_path
|
prot["typeclass"] = obj.db_typeclass_path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue