Fix body root being null on the client after init (#12638)

This commit is contained in:
DrSmugleaf
2022-11-17 01:58:55 +01:00
committed by GitHub
parent 28f8a41c1a
commit a410d19d21

View File

@@ -28,6 +28,7 @@ public partial class SharedBodySystem
var prototype = Prototypes.Index<BodyPrototype>(body.Prototype);
InitBody(body, prototype);
Dirty(body); // Client doesn't actually spawn the body, need to sync it
}
private void OnBodyGetState(EntityUid uid, BodyComponent body, ref ComponentGetState args)