Fix missing if statement when logging missing action error (#21560)

This commit is contained in:
DrSmugleaf
2023-11-10 22:46:42 -08:00
committed by GitHub
parent 9af95742df
commit 1a3d3a3ed0

View File

@@ -96,7 +96,9 @@ public abstract class SharedActionsSystem : EntitySystem
if (result != null)
return true;
Log.Error($"Failed to get action from action entity: {ToPrettyString(uid.Value)}");
if (logError)
Log.Error($"Failed to get action from action entity: {ToPrettyString(uid.Value)}");
return false;
}