diff --git a/src/scene-entry-manager.js b/src/scene-entry-manager.js index 45ae819bd133276e9e1876da5c0b290101ef2b77..747b51d173be42079a0fd471d0a783c07deb7dbb 100644 --- a/src/scene-entry-manager.js +++ b/src/scene-entry-manager.js @@ -225,9 +225,11 @@ export default class SceneEntryManager { this.scene.addEventListener("object_unpinned", e => { const el = e.detail.el; - if (!NAF.utils.isMine(el)) return; - const components = el.components; + const networked = components.networked; + + if (!networked || !NAF.utils.isMine(el)) return; + const networkId = components.networked.data.networkId; el.setAttribute("networked", { persistent: false });