From e9eca826d8d46fdfc0f8ba4a5e92486163ae10ba Mon Sep 17 00:00:00 2001
From: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Date: Mon, 25 Nov 2024 23:39:04 +0100
Subject: [PATCH] minor AI cleanup (#33555)
* minor cleanup
* to
---
.../Silicons/StationAi/SharedStationAiSystem.Airlock.cs | 4 ++--
Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Content.Shared/Silicons/StationAi/SharedStationAiSystem.Airlock.cs b/Content.Shared/Silicons/StationAi/SharedStationAiSystem.Airlock.cs
index 37e5cd6e6aed9c..ca2d593dbe1c09 100644
--- a/Content.Shared/Silicons/StationAi/SharedStationAiSystem.Airlock.cs
+++ b/Content.Shared/Silicons/StationAi/SharedStationAiSystem.Airlock.cs
@@ -34,7 +34,7 @@ private void OnAirlockBolt(EntityUid ent, DoorBoltComponent component, StationAi
}
///
- /// 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 @@ private void OnAirlockEmergencyAccess(EntityUid ent, AirlockComponent component,
}
///
- /// 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 189515635a82ba..5fca5cad280d9d 100644
--- a/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs
+++ b/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs
@@ -394,6 +394,9 @@ private void AttachEye(Entity ent)
private void OnAiInsert(Entity ent, ref EntInsertedIntoContainerMessage args)
{
+ if (args.Container.ID != StationAiCoreComponent.Container)
+ return;
+
if (_timing.ApplyingState)
return;