Remove 700 usages of Component.Owner (#21100)

This commit is contained in:
DrSmugleaf
2023-10-19 12:34:31 -07:00
committed by GitHub
parent 5825ffb95c
commit f560f88eb5
261 changed files with 2291 additions and 2036 deletions

View File

@@ -1,6 +1,5 @@
using Content.Server.Administration.Logs;
using Content.Server.Interaction.Components;
using Content.Server.Nutrition.Components;
using Content.Server.Popups;
using Content.Shared.Database;
using Content.Shared.IdentityManagement;
@@ -84,7 +83,8 @@ public sealed class AnimalHusbandrySystem : EntitySystem
var xform = Transform(uid);
var partners = _entityLookup.GetComponentsInRange<ReproductivePartnerComponent>(xform.Coordinates, component.BreedRange);
var partners = new HashSet<Entity<ReproductivePartnerComponent>>();
_entityLookup.GetEntitiesInRange(xform.Coordinates, component.BreedRange, partners);
if (partners.Count >= component.Capacity)
return false;