Do not log missing components in OpenableSystem (#24208)

Do not log missing components

(cherry picked from commit 1e9eab0a0b7524e2fcdc3b342cc15fe777b7a7bd)
This commit is contained in:
Kevin Zheng 2024-01-17 16:16:58 -08:00 committed by Debug
parent 565a19d4cd
commit de0ef57a55
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
1 changed files with 2 additions and 2 deletions

View 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);