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