mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-27 12:35:28 +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 (_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();
|
base.Update();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -223,6 +223,14 @@ namespace QSB.Syncs
|
|||||||
return;
|
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();
|
UpdateTransform();
|
||||||
|
|
||||||
base.Update();
|
base.Update();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user