diff --git a/packages/topdown/src/persea/controllers/room/component.jsx b/packages/topdown/src/persea/controllers/room/component.jsx index 531c5d5..2183fbe 100644 --- a/packages/topdown/src/persea/controllers/room/component.jsx +++ b/packages/topdown/src/persea/controllers/room/component.jsx @@ -69,9 +69,13 @@ const RoomComponent = ({ // Otherwise, we'll update the room. else { const updateRoom = async () => { + // Update entities. if (previousResource.entities !== resource.entities) { if (previousResource.entities.length !== resource.entities.length) { await room.entityList.load(resource.entities); + Object.values(room.entities()).forEach((entity) => { + entity.renderTick(Infinity); + }); } else { for (let i = 0; i < resource.entities.length; i++) { @@ -85,6 +89,7 @@ const RoomComponent = ({ } } } + // Update tiles. if (previousResource.tiles !== resource.tiles) { if (previousResource.tiles.length !== resource.tiles.length) { await room.loadTiles(resource.tiles);