fixed probe error (#125)

This commit is contained in:
AmazingAlek 2020-08-07 22:39:50 +02:00 committed by GitHub
parent 52238374c5
commit 4066664cf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<ProbeAnimatorController>());
PlayerToolsManager.CreateProbe(body, PlayerId);