change to root

This commit is contained in:
Mister_Nebula 2020-08-14 11:38:22 +01:00
parent 363b1e38c6
commit 65a1a04575

View File

@ -37,7 +37,7 @@ namespace QSB.TransformSync
protected void Init()
{
ReferenceTransform = Locator.GetPlayerBody().GetComponent<PlayerSpawner>().GetInitialSpawnPoint().transform;
ReferenceTransform = Locator.GetPlayerBody().GetComponent<PlayerSpawner>().GetInitialSpawnPoint().transform.root;
SyncedTransform = hasAuthority ? InitLocalTransform() : InitRemoteTransform();
if (!hasAuthority)
{