]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
minor AI cleanup (#33555)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Mon, 25 Nov 2024 22:39:04 +0000 (23:39 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Nov 2024 22:39:04 +0000 (09:39 +1100)
* minor cleanup

* to

Content.Shared/Silicons/StationAi/SharedStationAiSystem.Airlock.cs
Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs

index 37e5cd6e6aed9ca85ef267ef306cf06c3d05f16f..ca2d593dbe1c0995dc4f1fd9df390bff82609410 100644 (file)
@@ -34,7 +34,7 @@ public abstract partial class SharedStationAiSystem
     }
 
     /// <summary>
-    /// 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.
     /// </summary>
     private void OnAirlockEmergencyAccess(EntityUid ent, AirlockComponent component, StationAiEmergencyAccessEvent args)
     {
@@ -48,7 +48,7 @@ public abstract partial class SharedStationAiSystem
     }
 
     /// <summary>
-    /// 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.
     /// </summary>
     private void OnElectrified(EntityUid ent, ElectrifiedComponent component, StationAiElectrifiedEvent args)
     {
index 189515635a82ba9127bd084a2dd52796318d96ce..5fca5cad280d9de7604acfba28702efb0f6909e4 100644 (file)
@@ -394,6 +394,9 @@ public abstract partial class SharedStationAiSystem : EntitySystem
 
     private void OnAiInsert(Entity<StationAiCoreComponent> ent, ref EntInsertedIntoContainerMessage args)
     {
+        if (args.Container.ID != StationAiCoreComponent.Container)
+            return;
+
         if (_timing.ApplyingState)
             return;