1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-07 18:14:01 +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, variant: data.variant,
}); });
entity.uid = payload.uid;
this.deserializeComponents(entity, payload.components); this.deserializeComponents(entity, payload.components);
root.entityMgr.registerEntity(entity, payload.uid); root.entityMgr.registerEntity(entity, payload.uid);