1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-06 09:34:05 +00:00

Fix entities being incorrectly restored

This commit is contained in:
tobspr 2020-08-11 13:31:27 +02:00
parent 20718ca05c
commit 5708ef385c

View File

@ -58,6 +58,8 @@ export class SerializerInternal {
variant: data.variant,
});
entity.uid = payload.uid;
this.deserializeComponents(entity, payload.components);
root.entityMgr.registerEntity(entity, payload.uid);