mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 08:16:30 +01:00
Fix Field at_added call
This commit is contained in:
parent
2ff534c56a
commit
476df0ea3e
2 changed files with 6 additions and 6 deletions
|
|
@ -123,9 +123,9 @@ class TagField:
|
|||
"""
|
||||
instance.host.tags.clear(category=self._category_key)
|
||||
|
||||
def at_added(self, instance):
|
||||
def at_added(self, component):
|
||||
if self._default:
|
||||
self.__set__(instance, self._default)
|
||||
self.__set__(component, self._default)
|
||||
|
||||
def at_removed(self, instance):
|
||||
self.__delete__(instance)
|
||||
def at_removed(self, component):
|
||||
self.__delete__(component)
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ class ComponentHandler:
|
|||
self.host.tags.add(component_name, category="components")
|
||||
self._set_component(component)
|
||||
for field in component.get_fields():
|
||||
field.at_added(self.host)
|
||||
field.at_added(component)
|
||||
|
||||
component.at_added(self.host)
|
||||
|
||||
|
|
@ -115,7 +115,7 @@ class ComponentHandler:
|
|||
raise exceptions.ComponentIsNotRegistered(message)
|
||||
|
||||
for field in component.get_fields():
|
||||
field.at_removed(self.host)
|
||||
field.at_removed(component)
|
||||
|
||||
component.at_removed(self.host)
|
||||
if component.cmd_set:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue