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

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;