From bd9d1a53f76feabbba574ccbc24fb3f8014bfb44 Mon Sep 17 00:00:00 2001 From: Tayrtahn Date: Thu, 19 Jun 2025 20:02:46 -0400 Subject: [PATCH] Remove redundant IoC Resolve in `EmptyOrWindowValidInTile` (#38446) Remove redundant IoC Resolve in EmptyOrWindowValidInTile --- .../Construction/Conditions/EmptyOrWindowValidInTile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs b/Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs index 5a70e145f6..73b23d11ae 100644 --- a/Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs +++ b/Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs @@ -21,7 +21,7 @@ namespace Content.Shared.Construction.Conditions foreach (var entity in lookupSys.GetEntitiesIntersecting(location, LookupFlags.Approximate | LookupFlags.Static)) { - if (IoCManager.Resolve().HasComponent(entity)) + if (entManager.HasComponent(entity)) result = true; }