change to spawn point

This commit is contained in:
Mister_Nebula 2020-08-14 11:34:04 +01:00
parent 629ca73dcf
commit 363b1e38c6

View File

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