mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
Update QSBNetworkTransform.cs
This commit is contained in:
parent
bc64d9f64b
commit
0dc421c69d
@ -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?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user