]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove redundant IoC Resolve in `EmptyOrWindowValidInTile` (#38446)
authorTayrtahn <tayrtahn@gmail.com>
Fri, 20 Jun 2025 00:02:46 +0000 (20:02 -0400)
committerGitHub <noreply@github.com>
Fri, 20 Jun 2025 00:02:46 +0000 (02:02 +0200)
Remove redundant IoC Resolve in EmptyOrWindowValidInTile

Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs

index 5a70e145f629c4615452d7cec234b473ada9667a..73b23d11ae848ff3abf840785f172743dd3ef0ba 100644 (file)
@@ -21,7 +21,7 @@ namespace Content.Shared.Construction.Conditions
 
             foreach (var entity in lookupSys.GetEntitiesIntersecting(location, LookupFlags.Approximate | LookupFlags.Static))
             {
-                if (IoCManager.Resolve<IEntityManager>().HasComponent<SharedCanBuildWindowOnTopComponent>(entity))
+                if (entManager.HasComponent<SharedCanBuildWindowOnTopComponent>(entity))
                     result = true;
             }