You can now pickup items inside obstructions (#759)

This commit is contained in:
Víctor Aguilera Puerto
2020-02-28 17:52:18 +01:00
committed by GitHub
parent 2df0f884ba
commit 60d6b4af7d
2 changed files with 6 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ namespace Content.Server.GameObjects
var itemPos = Owner.Transform.WorldPosition;
return _entitySystemManager.GetEntitySystem<InteractionSystem>()
.InRangeUnobstructed(userPos, itemPos, ignoredEnt: Owner);
.InRangeUnobstructed(userPos, itemPos, ignoredEnt: Owner, insideBlockerValid:true);
}
public bool AttackHand(AttackHandEventArgs eventArgs)