fix synchronisation between users

This commit is contained in:
りき萌 2025-09-08 23:11:14 +02:00
parent 410f82201d
commit 85dce88ec2
4 changed files with 16 additions and 7 deletions

View file

@ -189,7 +189,7 @@ function readUrl(urlString) {
}
if (wallEvent.kind.event == "interact") {
user.simulate(chunkAllocator, wall, wallEvent.kind.interactions);
user.simulate(chunkAllocator, brushRenderer, wall, wallEvent.kind.interactions);
}
}
});
@ -281,7 +281,10 @@ function readUrl(urlString) {
cursor += edit.data.size;
}
session.sendEdit(editRecords, new Blob(dataParts));
let data = new Blob(dataParts);
console.log("sending edit data. record count:", editRecords.length, "data blob:", data);
session.sendEdit(editRecords, data);
});
canvasRenderer.addEventListener(".viewportUpdate", () => reticleRenderer.render());