Merge pull request #170 from Raicuparta/fix-default-sector

Fix default sector
This commit is contained in:
Mister_Nebula 2020-08-14 13:23:34 +01:00 committed by GitHub
commit 9e607aa153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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