mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
Update QSBNetworkTransform.cs
This commit is contained in:
parent
bc64d9f64b
commit
0dc421c69d
@ -162,12 +162,12 @@ namespace QSB.TransformSync
|
||||
{
|
||||
return;
|
||||
}
|
||||
DebugLog.DebugWrite($"set sector of {PlayerId}.{GetType().Name} to {sector.Name}");
|
||||
ReferenceSector = sector;
|
||||
transform.SetParent(sector.Transform, true);
|
||||
if (!HasAuthority)
|
||||
{
|
||||
AttachedObject.transform.SetParent(sector.Transform, true);
|
||||
AttachedObject.transform.localScale = Vector3.one; // stop black hole weirdness?
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user