Fix drone console docking (#25822)
This commit is contained in:
@@ -377,7 +377,15 @@ namespace Content.Server.Shuttles.Systems
|
||||
|
||||
private void OnRequestDock(EntityUid uid, ShuttleConsoleComponent component, DockRequestMessage args)
|
||||
{
|
||||
var shuttleUid = Transform(uid).GridUid;
|
||||
var console = _console.GetDroneConsole(uid);
|
||||
|
||||
if (console == null)
|
||||
{
|
||||
_popup.PopupCursor(Loc.GetString("shuttle-console-dock-fail"));
|
||||
return;
|
||||
}
|
||||
|
||||
var shuttleUid = Transform(console.Value).GridUid;
|
||||
|
||||
if (!CanShuttleDock(shuttleUid))
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ public sealed partial class ShuttleConsoleSystem
|
||||
/// <summary>
|
||||
/// Gets the drone console target if applicable otherwise returns itself.
|
||||
/// </summary>
|
||||
private EntityUid? GetDroneConsole(EntityUid consoleUid)
|
||||
public EntityUid? GetDroneConsole(EntityUid consoleUid)
|
||||
{
|
||||
var getShuttleEv = new ConsoleShuttleEvent
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user