Update content for new lookup API (#7363)
This commit is contained in:
@@ -16,6 +16,7 @@ using Robust.Shared.Random;
|
||||
using Robust.Shared.Serialization.Manager;
|
||||
using Content.Shared.Inventory.Events;
|
||||
using Content.Server.Nutrition.EntitySystems;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Server.Disease
|
||||
@@ -369,7 +370,7 @@ namespace Content.Server.Disease
|
||||
|
||||
var carrierQuery = GetEntityQuery<DiseaseCarrierComponent>();
|
||||
|
||||
foreach (var entity in _lookup.GetEntitiesInRange(xform.MapID, xform.WorldPosition, 2f))
|
||||
foreach (var entity in _lookup.GetEntitiesInRange(xform.MapPosition, 2f))
|
||||
{
|
||||
if (!carrierQuery.TryGetComponent(entity, out var carrier) ||
|
||||
!_interactionSystem.InRangeUnobstructed(uid, entity)) continue;
|
||||
|
||||
Reference in New Issue
Block a user