From 4359a083c598bad1603258ff4fda5f633b481531 Mon Sep 17 00:00:00 2001 From: wrexbe <81056464+wrexbe@users.noreply.github.com> Date: Fri, 26 Nov 2021 22:44:03 -0800 Subject: [PATCH] Block place item ontop in users inventory (#5568) --- Content.Shared/Placeable/PlaceableSurfaceSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Shared/Placeable/PlaceableSurfaceSystem.cs b/Content.Shared/Placeable/PlaceableSurfaceSystem.cs index 8c49272653..322b897735 100644 --- a/Content.Shared/Placeable/PlaceableSurfaceSystem.cs +++ b/Content.Shared/Placeable/PlaceableSurfaceSystem.cs @@ -54,6 +54,9 @@ namespace Content.Shared.Placeable if(!args.User.TryGetComponent(out var handComponent)) return; + if (!args.ClickLocation.IsValid(args.User.EntityManager)) + return; + if(!handComponent.TryDropEntity(args.Used, surface.Owner.Transform.Coordinates)) return;