Block place item ontop in users inventory (#5568)
This commit is contained in:
parent
d6d73573cb
commit
4359a083c5
|
|
@ -54,6 +54,9 @@ namespace Content.Shared.Placeable
|
|||
if(!args.User.TryGetComponent<SharedHandsComponent>(out var handComponent))
|
||||
return;
|
||||
|
||||
if (!args.ClickLocation.IsValid(args.User.EntityManager))
|
||||
return;
|
||||
|
||||
if(!handComponent.TryDropEntity(args.Used, surface.Owner.Transform.Coordinates))
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue