Update QSBNetworkTransform.cs

This commit is contained in:
Mister_Nebula 2021-04-21 19:29:14 +01:00
parent bc64d9f64b
commit 0dc421c69d

View File

@ -162,12 +162,12 @@ namespace QSB.TransformSync
{ {
return; return;
} }
DebugLog.DebugWrite($"set sector of {PlayerId}.{GetType().Name} to {sector.Name}");
ReferenceSector = sector; ReferenceSector = sector;
transform.SetParent(sector.Transform, true); transform.SetParent(sector.Transform, true);
if (!HasAuthority) if (!HasAuthority)
{ {
AttachedObject.transform.SetParent(sector.Transform, true); AttachedObject.transform.SetParent(sector.Transform, true);
AttachedObject.transform.localScale = Vector3.one; // stop black hole weirdness?
} }
} }