Remove obsolete Fixture.Body references (#16259)
This commit is contained in:
@@ -34,9 +34,9 @@ namespace Content.Server.Chemistry.EntitySystems
|
||||
|
||||
private void HandleInjection(EntityUid uid, SolutionInjectOnCollideComponent component, ref StartCollideEvent args)
|
||||
{
|
||||
var target = args.OtherFixture.Body.Owner;
|
||||
var target = args.OtherEntity;
|
||||
|
||||
if (!args.OtherFixture.Body.Hard ||
|
||||
if (!args.OtherBody.Hard ||
|
||||
!EntityManager.TryGetComponent<BloodstreamComponent>(target, out var bloodstream) ||
|
||||
!_solutionsSystem.TryGetInjectableSolution(component.Owner, out var solution)) return;
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Content.Server.Chemistry.EntitySystems
|
||||
|
||||
var solRemoved = solution.SplitSolution(component.TransferAmount);
|
||||
var solRemovedVol = solRemoved.Volume;
|
||||
|
||||
|
||||
var solToInject = solRemoved.SplitSolution(solRemovedVol * component.TransferEfficiency);
|
||||
|
||||
_bloodstreamSystem.TryAddToChemicals(target, solToInject, bloodstream);
|
||||
|
||||
Reference in New Issue
Block a user