Do not log missing components in OpenableSystem (#24208)
Do not log missing components
This commit is contained in:
@@ -118,7 +118,7 @@ public sealed class OpenableSystem : EntitySystem
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void SetOpen(EntityUid uid, bool opened = true, OpenableComponent? comp = null)
|
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;
|
return;
|
||||||
|
|
||||||
comp.Opened = opened;
|
comp.Opened = opened;
|
||||||
@@ -132,7 +132,7 @@ public sealed class OpenableSystem : EntitySystem
|
|||||||
/// <returns>Whether it got opened</returns>
|
/// <returns>Whether it got opened</returns>
|
||||||
public bool TryOpen(EntityUid uid, OpenableComponent? comp = null)
|
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;
|
return false;
|
||||||
|
|
||||||
SetOpen(uid, true, comp);
|
SetOpen(uid, true, comp);
|
||||||
|
|||||||
Reference in New Issue
Block a user