Fix SharedActionSystem spamming errors (#38358)
This commit is contained in:
@@ -108,7 +108,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Entity<ActionComponent>? GetAction(Entity<ActionComponent?>? action, bool logError = true)
|
public Entity<ActionComponent>? GetAction(Entity<ActionComponent?>? action, bool logError = true)
|
||||||
{
|
{
|
||||||
if (action is not {} ent || TerminatingOrDeleted(ent))
|
if (action is not {} ent || Deleted(ent))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
if (!_actionQuery.Resolve(ent, ref ent.Comp, logError))
|
if (!_actionQuery.Resolve(ent, ref ent.Comp, logError))
|
||||||
|
|||||||
Reference in New Issue
Block a user