mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
closes #324
This commit is contained in:
parent
6146a5300d
commit
54b2cca481
@ -67,6 +67,12 @@ namespace QSB.Syncs.Sectored
|
||||
{
|
||||
if (_sectorIdWaitingSlot == int.MinValue)
|
||||
{
|
||||
if (ReferenceSector != null && ReferenceSector.Transform != ReferenceTransform)
|
||||
{
|
||||
DebugLog.ToConsole($"Warning - {_logName} : ReferenceSector.Transform was different to ReferenceTransform. Correcting...", OWML.Common.MessageType.Warning);
|
||||
SetReferenceTransform(ReferenceSector.Transform);
|
||||
}
|
||||
|
||||
base.Update();
|
||||
return;
|
||||
}
|
||||
|
@ -223,6 +223,14 @@ namespace QSB.Syncs
|
||||
return;
|
||||
}
|
||||
|
||||
if (ShouldReparentAttachedObject
|
||||
&& !HasAuthority
|
||||
&& AttachedObject.transform.parent != ReferenceTransform)
|
||||
{
|
||||
DebugLog.ToConsole($"Warning : {_logName} : AttachedObject's parent is different to ReferenceTransform. Correcting...", MessageType.Warning);
|
||||
ReparentAttachedObject(ReferenceTransform);
|
||||
}
|
||||
|
||||
UpdateTransform();
|
||||
|
||||
base.Update();
|
||||
|
Loading…
x
Reference in New Issue
Block a user