Content update for NetEntities (#18935)
This commit is contained in:
@@ -44,8 +44,9 @@ namespace Content.Client.Shuttles.Systems
|
||||
{
|
||||
if (args.Current is not PilotComponentState state) return;
|
||||
|
||||
var console = state.Console.GetValueOrDefault();
|
||||
if (!console.IsValid())
|
||||
var console = EnsureEntity<PilotComponent>(state.Console, uid);
|
||||
|
||||
if (console == null)
|
||||
{
|
||||
component.Console = null;
|
||||
_input.Contexts.SetActiveContext("human");
|
||||
|
||||
@@ -47,7 +47,7 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem
|
||||
{
|
||||
if (_overlay == null) return;
|
||||
|
||||
_overlay.StationUid = ev.StationUid;
|
||||
_overlay.StationUid = GetEntity(ev.StationUid);
|
||||
_overlay.Position = ev.Position;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user