mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
cleanup
This commit is contained in:
parent
3693dd25be
commit
91f9e5b9dc
@ -21,7 +21,7 @@ namespace QSB.Events
|
||||
public override void OnServerReceive(PlayerMessage message)
|
||||
{
|
||||
PlayerState.LocalInstance.Send();
|
||||
foreach (var item in PlayerRegistry.TransformSyncs.Where(x => x.IsReady && x.ReferenceSector != null))
|
||||
foreach (var item in PlayerRegistry.TransformSyncs.Where(x => x != null && x.IsReady && x.ReferenceSector != null))
|
||||
{
|
||||
GlobalMessenger<uint, Sector.Name, string>.FireEvent(EventNames.QSBSectorChange, item.netId.Value, item.ReferenceSector.GetName(), item.ReferenceSector.name);
|
||||
}
|
||||
|
@ -71,6 +71,6 @@ namespace QSB.TransformSync
|
||||
SyncedTransform.localPosition = ReferenceSector.transform.InverseTransformPoint(Player.ProbeLauncher.ToolGameObject.transform.position);
|
||||
}
|
||||
|
||||
public override bool IsReady => Locator.GetProbe() != null && Player != null && (Player?.IsReady).Value;
|
||||
public override bool IsReady => Locator.GetProbe() != null && Player != null && Player.IsReady;
|
||||
}
|
||||
}
|
||||
|
@ -49,6 +49,6 @@ namespace QSB.TransformSync
|
||||
return body;
|
||||
}
|
||||
|
||||
public override bool IsReady => Locator.GetPlayerTransform() != null && Player != null && (Player?.IsReady).Value;
|
||||
public override bool IsReady => Locator.GetPlayerTransform() != null && Player != null && Player.IsReady;
|
||||
}
|
||||
}
|
||||
|
@ -51,6 +51,6 @@ namespace QSB.TransformSync
|
||||
return remoteTransform;
|
||||
}
|
||||
|
||||
public override bool IsReady => GetShipModel() != null && Player != null && (Player?.IsReady).Value;
|
||||
public override bool IsReady => GetShipModel() != null && Player != null && Player.IsReady;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user