Fix body root being null on the client after init (#12638)
This commit is contained in:
@@ -28,6 +28,7 @@ public partial class SharedBodySystem
|
|||||||
|
|
||||||
var prototype = Prototypes.Index<BodyPrototype>(body.Prototype);
|
var prototype = Prototypes.Index<BodyPrototype>(body.Prototype);
|
||||||
InitBody(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)
|
private void OnBodyGetState(EntityUid uid, BodyComponent body, ref ComponentGetState args)
|
||||||
|
|||||||
Reference in New Issue
Block a user