Block place item ontop in users inventory (#5568)

This commit is contained in:
wrexbe 2021-11-26 22:44:03 -08:00 committed by GitHub
parent d6d73573cb
commit 4359a083c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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;