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;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Content.Server.Chemistry.EntitySystems;
|
||||
using Content.Server.Nutrition;
|
||||
using Content.Server.Nutrition.Components;
|
||||
using Content.Shared.Chemistry.Components;
|
||||
using Content.Shared.Chemistry.Components.SolutionManager;
|
||||
@@ -8,7 +6,6 @@ using Content.Shared.Examine;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Content.Shared.Hands.EntitySystems;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Item;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.Player;
|
||||
@@ -74,7 +71,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
else
|
||||
{
|
||||
var xform = Transform(sliceUid);
|
||||
_containerSystem.AttachParentToContainerOrGrid(xform);
|
||||
_containerSystem.AttachParentToContainerOrGrid((sliceUid, xform));
|
||||
xform.LocalRotation = 0;
|
||||
}
|
||||
|
||||
@@ -113,7 +110,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
else
|
||||
{
|
||||
var xform = Transform(sliceUid);
|
||||
_containerSystem.AttachParentToContainerOrGrid(xform);
|
||||
_containerSystem.AttachParentToContainerOrGrid((sliceUid, xform));
|
||||
xform.LocalRotation = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user