Do not log missing components in OpenableSystem (#24208)

Do not log missing components
This commit is contained in:
Kevin Zheng
2024-01-17 16:16:58 -08:00
committed by GitHub
parent 4536bad948
commit 1e9eab0a0b

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