diff options
-rw-r--r-- | api/logic/minecraft/ComponentList.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/logic/minecraft/ComponentList.cpp b/api/logic/minecraft/ComponentList.cpp index 99a2fc82..93deef39 100644 --- a/api/logic/minecraft/ComponentList.cpp +++ b/api/logic/minecraft/ComponentList.cpp @@ -641,6 +641,7 @@ void ComponentList::insertComponent(size_t index, ComponentPtr component) d->components.insert(index, component); d->componentIndex[id] = component; endInsertRows(); + connect(component.get(), &Component::dataChanged, this, &ComponentList::componentDataChanged); scheduleSave(); } |