Makes InRangeUnobstructed use MapCoordinates. Fixes #1003
(Also updates Submoduke)
This commit is contained in:
@@ -122,7 +122,7 @@ namespace Content.Server.GameObjects.EntitySystems
|
||||
return false;
|
||||
|
||||
|
||||
if(EntitySystem.Get<SharedInteractionSystem>().InRangeUnobstructed(coords.ToMap(_mapManager), ent.Transform.WorldPosition, ignoredEnt: ent))
|
||||
if(EntitySystem.Get<SharedInteractionSystem>().InRangeUnobstructed(coords.ToMap(_mapManager), ent.Transform.MapPosition, ignoredEnt: ent))
|
||||
if (coords.InRange(_mapManager, ent.Transform.GridPosition, InteractionSystem.InteractionRange))
|
||||
{
|
||||
handsComp.Drop(handsComp.ActiveIndex, coords);
|
||||
|
||||
Reference in New Issue
Block a user