From: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Date: Mon, 25 Nov 2024 22:39:04 +0000 (+0100)
Subject: minor AI cleanup (#33555)
X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=e9eca826d8d46fdfc0f8ba4a5e92486163ae10ba;p=space-station-14.git
minor AI cleanup (#33555)
* minor cleanup
* to
---
diff --git a/Content.Shared/Silicons/StationAi/SharedStationAiSystem.Airlock.cs b/Content.Shared/Silicons/StationAi/SharedStationAiSystem.Airlock.cs
index 37e5cd6e6a..ca2d593dbe 100644
--- a/Content.Shared/Silicons/StationAi/SharedStationAiSystem.Airlock.cs
+++ b/Content.Shared/Silicons/StationAi/SharedStationAiSystem.Airlock.cs
@@ -34,7 +34,7 @@ public abstract partial class SharedStationAiSystem
}
///
- /// Attempts to bolt door. If wire was cut (AI) or its not powered - notifies AI and does nothing.
+ /// Attempts to toggle the door's emergency access. If wire was cut (AI) or its not powered - notifies AI and does nothing.
///
private void OnAirlockEmergencyAccess(EntityUid ent, AirlockComponent component, StationAiEmergencyAccessEvent args)
{
@@ -48,7 +48,7 @@ public abstract partial class SharedStationAiSystem
}
///
- /// Attempts to bolt door. If wire was cut (AI or for one of power-wires) or its not powered - notifies AI and does nothing.
+ /// Attempts to electrify the door. If wire was cut (AI or for one of power-wires) or its not powered - notifies AI and does nothing.
///
private void OnElectrified(EntityUid ent, ElectrifiedComponent component, StationAiElectrifiedEvent args)
{
diff --git a/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs b/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs
index 189515635a..5fca5cad28 100644
--- a/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs
+++ b/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs
@@ -394,6 +394,9 @@ public abstract partial class SharedStationAiSystem : EntitySystem
private void OnAiInsert(Entity ent, ref EntInsertedIntoContainerMessage args)
{
+ if (args.Container.ID != StationAiCoreComponent.Container)
+ return;
+
if (_timing.ApplyingState)
return;