mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-27 03:35:20 +00:00
add logs
This commit is contained in:
parent
66d1160df9
commit
ad1e47d950
@ -43,8 +43,14 @@ namespace QSB.Syncs.TransformSync
|
|||||||
var closestSector = SectorSync.GetClosestSector(AttachedObject.transform);
|
var closestSector = SectorSync.GetClosestSector(AttachedObject.transform);
|
||||||
if (closestSector != null)
|
if (closestSector != null)
|
||||||
{
|
{
|
||||||
|
DebugLog.DebugWrite($"INIT - Set {PlayerId}.{GetType().Name} to sector {closestSector.Name}");
|
||||||
|
// TODO : should this be set reference sector?
|
||||||
SetReferenceTransform(closestSector.Transform);
|
SetReferenceTransform(closestSector.Transform);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DebugLog.DebugWrite($"INIT - {PlayerId}.{GetType().Name}'s closest sector is null!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void SerializeTransform(QNetworkWriter writer)
|
public override void SerializeTransform(QNetworkWriter writer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user