fix: hydrate entities

This commit is contained in:
cha0s 2019-10-09 03:45:54 -05:00
parent 04f3b07250
commit 54eb6f20d4

View File

@ -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) {