From 68f3cf6dbff71b8501ebc4cd5157d924b38408be Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Fri, 14 Aug 2020 11:20:14 +0100 Subject: [PATCH 1/4] remove timber hearth set --- QSB/TransformSync/TransformSync.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/QSB/TransformSync/TransformSync.cs b/QSB/TransformSync/TransformSync.cs index e410cb8d..63428ae7 100644 --- a/QSB/TransformSync/TransformSync.cs +++ b/QSB/TransformSync/TransformSync.cs @@ -37,11 +37,10 @@ namespace QSB.TransformSync protected void Init() { - ReferenceTransform = Locator.GetAstroObject(AstroObject.Name.TimberHearth).transform; SyncedTransform = hasAuthority ? InitLocalTransform() : InitRemoteTransform(); if (!hasAuthority) { - SyncedTransform.position = ReferenceTransform.position; + SyncedTransform.position = Locator.GetRootTransform().position; } _isInitialized = true; } From 629ca73dcfc3c4fa0758ae6a998017ce068844d7 Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Fri, 14 Aug 2020 11:22:51 +0100 Subject: [PATCH 2/4] fix --- QSB/TransformSync/TransformSync.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QSB/TransformSync/TransformSync.cs b/QSB/TransformSync/TransformSync.cs index 63428ae7..c288a2b3 100644 --- a/QSB/TransformSync/TransformSync.cs +++ b/QSB/TransformSync/TransformSync.cs @@ -37,10 +37,11 @@ namespace QSB.TransformSync protected void Init() { + ReferenceTransform = Locator.GetCenterOfTheUniverse().GetStaticReferenceFrame().transform; SyncedTransform = hasAuthority ? InitLocalTransform() : InitRemoteTransform(); if (!hasAuthority) { - SyncedTransform.position = Locator.GetRootTransform().position; + SyncedTransform.position = ReferenceTransform.position; } _isInitialized = true; } From 363b1e38c61d622d3d95da7b343f939b65ee21f1 Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Fri, 14 Aug 2020 11:34:04 +0100 Subject: [PATCH 3/4] change to spawn point --- QSB/TransformSync/TransformSync.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QSB/TransformSync/TransformSync.cs b/QSB/TransformSync/TransformSync.cs index c288a2b3..84524691 100644 --- a/QSB/TransformSync/TransformSync.cs +++ b/QSB/TransformSync/TransformSync.cs @@ -37,7 +37,7 @@ namespace QSB.TransformSync protected void Init() { - ReferenceTransform = Locator.GetCenterOfTheUniverse().GetStaticReferenceFrame().transform; + ReferenceTransform = Locator.GetPlayerBody().GetComponent().GetInitialSpawnPoint().transform; SyncedTransform = hasAuthority ? InitLocalTransform() : InitRemoteTransform(); if (!hasAuthority) { From 65a1a0457514509e3b89c7f3c853cc501e8cfaac Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Fri, 14 Aug 2020 11:38:22 +0100 Subject: [PATCH 4/4] change to root --- QSB/TransformSync/TransformSync.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QSB/TransformSync/TransformSync.cs b/QSB/TransformSync/TransformSync.cs index 84524691..490a3934 100644 --- a/QSB/TransformSync/TransformSync.cs +++ b/QSB/TransformSync/TransformSync.cs @@ -37,7 +37,7 @@ namespace QSB.TransformSync protected void Init() { - ReferenceTransform = Locator.GetPlayerBody().GetComponent().GetInitialSpawnPoint().transform; + ReferenceTransform = Locator.GetPlayerBody().GetComponent().GetInitialSpawnPoint().transform.root; SyncedTransform = hasAuthority ? InitLocalTransform() : InitRemoteTransform(); if (!hasAuthority) {