From: Tayrtahn Date: Fri, 20 Jun 2025 00:02:46 +0000 (-0400) Subject: Remove redundant IoC Resolve in `EmptyOrWindowValidInTile` (#38446) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=bd9d1a53f76feabbba574ccbc24fb3f8014bfb44;p=space-station-14.git Remove redundant IoC Resolve in `EmptyOrWindowValidInTile` (#38446) Remove redundant IoC Resolve in EmptyOrWindowValidInTile --- 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; }