Remove 700 usages of Component.Owner (#21100)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user