fix: hydrate entities
This commit is contained in:
parent
04f3b07250
commit
54eb6f20d4
|
@ -44,7 +44,9 @@ export class EntityList extends decorate(class {}) {
|
|||
}
|
||||
if (packet instanceof SynchronizedCreatePacket) {
|
||||
Entity.loadOrInstance(packet.data.spec).then((entity) => {
|
||||
this.addEntity(entity);
|
||||
entity.hydrate().then(() => {
|
||||
this.addEntity(entity);
|
||||
});
|
||||
});
|
||||
}
|
||||
if (packet instanceof SynchronizedDestroyPacket) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user