diff --git a/app/src/react/components/play/index.jsx b/app/src/react/components/play/index.jsx index ece917b..5ef1964 100644 --- a/app/src/react/components/play/index.jsx +++ b/app/src/react/components/play/index.jsx @@ -37,6 +37,7 @@ const Play = () => { entity.parentNode = ref.current.querySelector('.entities'); } }; + Object.values(room.entities).forEach(onEntityAdded); room.on('entityAdded', onEntityAdded); return () => { room.off('entityAdded', onEntityAdded);