From 9619f7a32fde7b39cd618fe9d3e488b277b2cb1b Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:36:42 +0100 Subject: [PATCH] prevent pickup of items we are inside of --- code/_onclick/click.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index 7892b91a55c..16a35b18eac 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -191,6 +191,10 @@ if(stat) return 0 + // prevent picking up items while being in them + if(istype(A, /obj/item) && A == loc) + return 0 + return 1 /*