Fix drop range (#871)
This commit is contained in:
committed by
GitHub
parent
d4ca0a65ee
commit
f5657569e4
@@ -126,7 +126,7 @@ namespace Content.Server.GameObjects.EntitySystems
|
|||||||
|
|
||||||
var interactionSystem = _entitySystemManager.GetEntitySystem<InteractionSystem>();
|
var interactionSystem = _entitySystemManager.GetEntitySystem<InteractionSystem>();
|
||||||
|
|
||||||
if(interactionSystem.InRangeUnobstructed(coords.ToMap(_mapManager), ent.Transform.WorldPosition, 0f, ignoredEnt: ent))
|
if(interactionSystem.InRangeUnobstructed(coords.ToMap(_mapManager), ent.Transform.WorldPosition, ignoredEnt: ent))
|
||||||
if (coords.InRange(_mapManager, ent.Transform.GridPosition, InteractionSystem.InteractionRange))
|
if (coords.InRange(_mapManager, ent.Transform.GridPosition, InteractionSystem.InteractionRange))
|
||||||
{
|
{
|
||||||
handsComp.Drop(handsComp.ActiveIndex, coords);
|
handsComp.Drop(handsComp.ActiveIndex, coords);
|
||||||
|
|||||||
Reference in New Issue
Block a user