From 4066664cf7c4461341698bb5568e201e5d2e9363 Mon Sep 17 00:00:00 2001 From: AmazingAlek Date: Fri, 7 Aug 2020 22:39:50 +0200 Subject: [PATCH] fixed probe error (#125) --- QSB/TransformSync/PlayerProbeSync.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/QSB/TransformSync/PlayerProbeSync.cs b/QSB/TransformSync/PlayerProbeSync.cs index 95d57c6c..eb5486de 100644 --- a/QSB/TransformSync/PlayerProbeSync.cs +++ b/QSB/TransformSync/PlayerProbeSync.cs @@ -34,7 +34,13 @@ namespace QSB.TransformSync protected override Transform InitRemoteTransform() { - var body = Instantiate(GetProbe()); + var probe = GetProbe(); + + probe.gameObject.SetActive(false); + var body = Instantiate(probe); + probe.gameObject.SetActive(true); + + Destroy(body.GetComponentInChildren()); PlayerToolsManager.CreateProbe(body, PlayerId);