]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Do not log missing components in OpenableSystem (#24208)
authorKevin Zheng <kevinz5000@gmail.com>
Thu, 18 Jan 2024 00:16:58 +0000 (16:16 -0800)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2024 00:16:58 +0000 (19:16 -0500)
Do not log missing components

Content.Server/Nutrition/EntitySystems/OpenableSystem.cs

index fbe617eff49c9bd1d33ca6fd0b4fb5039332dff5..d7b7da25b8893730d416d10a7ba76d40f6cb9426 100644 (file)
@@ -118,7 +118,7 @@ public sealed class OpenableSystem : EntitySystem
     /// </summary>
     public void SetOpen(EntityUid uid, bool opened = true, OpenableComponent? comp = null)
     {
-        if (!Resolve(uid, ref comp) || opened == comp.Opened)
+        if (!Resolve(uid, ref comp, false) || opened == comp.Opened)
             return;
 
         comp.Opened = opened;
@@ -132,7 +132,7 @@ public sealed class OpenableSystem : EntitySystem
     /// <returns>Whether it got opened</returns>
     public bool TryOpen(EntityUid uid, OpenableComponent? comp = null)
     {
-        if (!Resolve(uid, ref comp) || comp.Opened)
+        if (!Resolve(uid, ref comp, false) || comp.Opened)
             return false;
 
         SetOpen(uid, true, comp);