Add protectedgrid to emergency shuttles (#14946)

This commit is contained in:
metalgearsloth
2023-03-29 18:48:32 +11:00
committed by GitHub
parent b32a32dc5c
commit f6b5fbca6a

View File

@@ -13,6 +13,7 @@ using Content.Shared.Access.Systems;
using Content.Shared.CCVar;
using Content.Shared.Database;
using Content.Shared.Shuttles.Events;
using Content.Shared.Tiles;
using Robust.Server.GameObjects;
using Robust.Server.Maps;
using Robust.Server.Player;
@@ -283,6 +284,7 @@ public sealed partial class EmergencyShuttleSystem : EntitySystem
_shuttleIndex += _mapManager.GetGrid(shuttle.Value).LocalAABB.Width + ShuttleSpawnBuffer;
component.EmergencyShuttle = shuttle;
EnsureComp<ProtectedGridComponent>(shuttle.Value);
}
private void CleanupEmergencyShuttle()