mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Add missing fullcache check to attributes.clear(). Resolves #1404.
This commit is contained in:
parent
f0d1abc4ff
commit
05a3d0435d
1 changed files with 2 additions and 0 deletions
|
|
@ -646,6 +646,8 @@ class AttributeHandler(object):
|
|||
type `attredit` on the Attribute in question.
|
||||
|
||||
"""
|
||||
if not self._cache_complete:
|
||||
self._fullcache()
|
||||
if accessing_obj:
|
||||
[attr.delete() for attr in self._cache.values()
|
||||
if attr and attr.access(accessing_obj, self._attredit, default=default_access)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue