fix: ensure there are queued packets
This commit is contained in:
parent
8916544193
commit
d353648f51
|
@ -120,9 +120,11 @@ export class Room extends decorate(Resource) {
|
|||
entity.setIntoRoom(this);
|
||||
if (AVOCADO_CLIENT) {
|
||||
const queuedPackets = this.queuedEntityPackets[entity.instanceUuid];
|
||||
if (queuedPackets) {
|
||||
for (let i = 0; i < queuedPackets.length; i++) {
|
||||
entity.acceptPacket(queuedPackets[i]);
|
||||
}
|
||||
}
|
||||
this.queuedEntityPackets[entity.instanceUuid] = undefined;
|
||||
}
|
||||
this.emit('entityAdded', entity)
|
||||
|
|
Loading…
Reference in New Issue
Block a user