This commit is contained in:
Mister_Nebula 2021-07-06 21:11:14 +01:00
parent 66d1160df9
commit ad1e47d950

View File

@ -43,8 +43,14 @@ namespace QSB.Syncs.TransformSync
var closestSector = SectorSync.GetClosestSector(AttachedObject.transform);
if (closestSector != null)
{
DebugLog.DebugWrite($"INIT - Set {PlayerId}.{GetType().Name} to sector {closestSector.Name}");
// TODO : should this be set reference sector?
SetReferenceTransform(closestSector.Transform);
}
else
{
DebugLog.DebugWrite($"INIT - {PlayerId}.{GetType().Name}'s closest sector is null!");
}
}
public override void SerializeTransform(QNetworkWriter writer)